Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ export const HostRemixContestDrawer = () => {
updateEvent({
eventId: remixContest.eventId,
endDate: endDate.toISOString(),
// event_data is replaced wholesale by the indexer on update, so
// carry over the fields this form doesn't edit (title,
// coverPhotoUrl, sourceTrackIds, etc.) instead of dropping them.
eventData: {
...remixContest.eventData,
description,
prizeInfo,
videoUrl: videoUrl.trim() || undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@
if (hasError || !trackId || !userId) return

const endDate = parsedDate.toISOString()
// event_data is replaced wholesale by the indexer on update, so carry
// over the fields this form doesn't edit (title, coverPhotoUrl,
// sourceTrackIds, etc.) instead of dropping them.
const eventData = {
...remixContest?.eventData,
description: contestDescription,
prizeInfo: contestPrizeInfo,
winners: remixContest?.eventData.winners ?? []
Expand Down Expand Up @@ -178,7 +182,7 @@
}

onClose()
}, [

Check warning on line 185 in packages/web/src/components/host-remix-contest-modal/HostRemixContestModal.tsx

View workflow job for this annotation

GitHub Actions / Web Lint & Stylelint

React Hook useCallback has a missing dependency: 'remixContest?.eventData'. Either include it or remove the dependency array
timeValue,
contestEndDate,
meridianValue,
Expand Down
Loading