Skip to content

Commit f2d0675

Browse files
committed
Fix scheduling due to missing device id
The function that creates the scheduling request for the backend was looking for the device id in the wrong place.
1 parent f5fabb3 commit f2d0675

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/slices/eventSlice.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ export const postNewEvent = (params: {
451451
scheduleStartHour: string,
452452
scheduleStartMinute: string,
453453
sourceMode: string,
454+
location: string,
454455
uploadAssetsTrack?: UploadAssetsTrack[],
455456
metadata: { [key: string]: unknown },
456457
},
@@ -544,7 +545,7 @@ export const postNewEvent = (params: {
544545
type: values.sourceMode,
545546
metadata: {
546547
start: startDate,
547-
device: values.metadata.location,
548+
device: values.location,
548549
inputs: values.inputs ? values.inputs.join(",") : "",
549550
end: endDate,
550551
duration: duration.toString(),

0 commit comments

Comments
 (0)