Skip to content

Commit 39b8a4d

Browse files
committed
🐛 [#372] Show all zaken in review page
1 parent 805392c commit 39b8a4d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

frontend/src/pages/destructionlist/review/DestructionListReview.tsx

+1-8
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,7 @@ export function DestructionListReviewPage() {
4444

4545
// The object list of the current page with review actions appended.
4646
const objectList = useMemo(() => {
47-
const zakenOrReviewItems =
48-
reviewItems && reviewItems.length ? reviewItems : paginatedZaken.results;
49-
50-
const objects: Zaak[] = zakenOrReviewItems.map((zori) =>
51-
"zaak" in zori ? zori.zaak : zori,
52-
);
53-
54-
return objects.map((zaak) => {
47+
return paginatedZaken.results.map((zaak) => {
5548
const badge = getReviewBadgeForZaak(zaak);
5649
const actions = getActionsToolbarForZaak(zaak);
5750
return { ...zaak, Beoordeling: badge, Acties: actions };

0 commit comments

Comments
 (0)