fix(webui): submit scheduling option revisions
This commit is contained in:
@@ -403,8 +403,16 @@ export default function SchedulingPage({ settings, auth }: { settings: ApiSettin
|
||||
event.preventDefault();
|
||||
if (!selected || !selectedParticipant || !canRespond || availabilityLoading) return;
|
||||
const answers = selected.slots
|
||||
.map((slot) => ({ slot_id: slot.id, value: availability[slot.id] }))
|
||||
.filter((answer): answer is { slot_id: string; value: SchedulingAvailabilityValue } => Boolean(answer.value));
|
||||
.map((slot) => ({
|
||||
slot_id: slot.id,
|
||||
value: availability[slot.id],
|
||||
option_revision: slot.revision
|
||||
}))
|
||||
.filter((answer): answer is {
|
||||
slot_id: string;
|
||||
value: SchedulingAvailabilityValue;
|
||||
option_revision: string;
|
||||
} => Boolean(answer.value));
|
||||
if (!answers.length) {
|
||||
setError(I18N.selectResponse);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user