fix sync error with event without stage

This commit is contained in:
tree 2023-06-03 11:29:45 +02:00
rodič 8c598e0450
revize 07501754f1
1 změnil soubory, kde provedl 1 přidání a 2 odebrání

Zobrazit soubor

@ -71,8 +71,7 @@ const commands = {
if (item.track) { if (item.track) {
i.track = findTrack(item.track.en); i.track = findTrack(item.track.en);
} }
out.push(i); if (item.slot && item.slot.room) {
if (item.slot) {
outSchedule.push({ outSchedule.push({
id: genId(outSchedule.map((o) => o.id)), id: genId(outSchedule.map((o) => o.id)),
stage: findStage(item.slot.room.en), stage: findStage(item.slot.room.en),