Skip to content

Commit

Permalink
fix: account for multiselect type mismatch (#686) (#4025)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinBuyck authored Apr 18, 2024
1 parent 2694a7d commit c2419da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sites/partners/src/components/listings/ListingFormActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
})
Expand Down

0 comments on commit c2419da

Please sign in to comment.