From e07b215cb83865d4e74368ed10ba56b7e9600f92 Mon Sep 17 00:00:00 2001 From: ColinBuyck <53269332+ColinBuyck@users.noreply.github.com> Date: Tue, 16 Apr 2024 12:26:40 -0700 Subject: [PATCH] fix: account for multiselect type mismatch (#686) --- .../src/components/listings/ListingFormActions.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sites/partners/src/components/listings/ListingFormActions.tsx b/sites/partners/src/components/listings/ListingFormActions.tsx index ee6f28ac9d..840e1ea7ab 100644 --- a/sites/partners/src/components/listings/ListingFormActions.tsx +++ b/sites/partners/src/components/listings/ListingFormActions.tsx @@ -244,6 +244,13 @@ const ListingFormActions = ({ id: listing.id, body: { ...(listing as unknown as ListingUpdate), + // account for type mismatch between ListingMultiSelectQuestionType and IdDto + listingMultiselectQuestions: listing.listingMultiselectQuestions?.map( + (multiselectQuestions) => ({ + ordinal: multiselectQuestions.ordinal, + id: multiselectQuestions.multiselectQuestions?.id, + }) + ), status: ListingsStatusEnum.active, }, })