@@ -5,7 +5,7 @@ import { listArchivists } from "../../../lib/api/archivist";
5
5
import { AuditLogItem , listAuditLog } from "../../../lib/api/auditLog" ;
6
6
import { User , whoAmI } from "../../../lib/api/auth" ;
7
7
import {
8
- DestructionList ,
8
+ DestructionListRead ,
9
9
getDestructionList ,
10
10
} from "../../../lib/api/destructionLists" ;
11
11
import {
@@ -19,6 +19,10 @@ import {
19
19
getLatestReview ,
20
20
listReviewItems ,
21
21
} from "../../../lib/api/review" ;
22
+ import {
23
+ ReviewResponse ,
24
+ getLatestReviewResponse ,
25
+ } from "../../../lib/api/reviewResponse" ;
22
26
import { listReviewers } from "../../../lib/api/reviewers" ;
23
27
import { PaginatedZaken , listZaken } from "../../../lib/api/zaken" ;
24
28
import {
@@ -34,7 +38,7 @@ import {
34
38
export interface DestructionListDetailContext {
35
39
storageKey : string ;
36
40
37
- destructionList : DestructionList ;
41
+ destructionList : DestructionListRead ;
38
42
destructionListItems : PaginatedDestructionListItems ;
39
43
logItems : AuditLogItem [ ] ;
40
44
@@ -47,6 +51,7 @@ export interface DestructionListDetailContext {
47
51
48
52
review : Review | null ;
49
53
reviewItems : ReviewItemWithZaak [ ] | null ;
54
+ reviewResponse ?: ReviewResponse ;
50
55
51
56
selectieLijstKlasseChoicesMap : Record < string , Option [ ] > | null ;
52
57
}
@@ -162,6 +167,7 @@ export const destructionListDetailLoader = loginRequired(
162
167
163
168
const [
164
169
destructionListItems ,
170
+ reviewResponse ,
165
171
logItems ,
166
172
zaakSelection ,
167
173
allZaken ,
@@ -171,6 +177,10 @@ export const destructionListDetailLoader = loginRequired(
171
177
selectieLijstKlasseChoicesMap ,
172
178
] = await Promise . all ( [
173
179
getDestructionListItems ( ) ,
180
+ review &&
181
+ getLatestReviewResponse ( {
182
+ review : review . pk ,
183
+ } ) ,
174
184
listAuditLog ( destructionList . uuid ) ,
175
185
getZaakSelection ( storageKey ) ,
176
186
getSelectableZaken ( ) ,
@@ -203,6 +213,7 @@ export const destructionListDetailLoader = loginRequired(
203
213
204
214
review : review ,
205
215
reviewItems : reviewItemsWithZaak ,
216
+ reviewResponse,
206
217
207
218
selectieLijstKlasseChoicesMap,
208
219
} ;
0 commit comments