Skip to content

Commit

Permalink
Merge pull request #808 from cultuurnet/feature/III-5746-follow-up
Browse files Browse the repository at this point in the history
III-5746 - Also use hiddenLabels for showing cultuurkuur tab on organiser
  • Loading branch information
brampauwelyn authored Oct 12, 2023
2 parents 809c42d + a26c80d commit edf8e95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/organizers/create/OrganizerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ const OrganizerForm = () => {
// @ts-expect-error
const organizer = getOrganizerByIdQuery?.data;

const organizerLabels = organizer?.labels;
const organizerLabelsSet = new Set([
...(organizer?.labels ?? []),
...(organizer?.hiddenLabels ?? []),
]);

const organizerLabels = [...organizerLabelsSet];

const createOrganizerMutation = useCreateOrganizerMutation();
const updateOrganizerMutation = useUpdateOrganizerMutation();
Expand Down

0 comments on commit edf8e95

Please sign in to comment.