Skip to content

Commit

Permalink
🐛 [#372] Show all zaken in review page
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Sep 20, 2024
1 parent 805392c commit 39b8a4d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,7 @@ export function DestructionListReviewPage() {

// The object list of the current page with review actions appended.
const objectList = useMemo(() => {
const zakenOrReviewItems =
reviewItems && reviewItems.length ? reviewItems : paginatedZaken.results;

const objects: Zaak[] = zakenOrReviewItems.map((zori) =>
"zaak" in zori ? zori.zaak : zori,
);

return objects.map((zaak) => {
return paginatedZaken.results.map((zaak) => {
const badge = getReviewBadgeForZaak(zaak);
const actions = getActionsToolbarForZaak(zaak);
return { ...zaak, Beoordeling: badge, Acties: actions };
Expand Down

0 comments on commit 39b8a4d

Please sign in to comment.