From 07501754f1c115e72eae7341ce59ac39c6f66de4 Mon Sep 17 00:00:00 2001 From: tree Date: Sat, 3 Jun 2023 11:29:45 +0200 Subject: [PATCH] fix sync error with event without stage --- utils/pretalx-sync.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/pretalx-sync.js b/utils/pretalx-sync.js index 52c3d24..83bb11a 100644 --- a/utils/pretalx-sync.js +++ b/utils/pretalx-sync.js @@ -71,8 +71,7 @@ const commands = { if (item.track) { i.track = findTrack(item.track.en); } - out.push(i); - if (item.slot) { + if (item.slot && item.slot.room) { outSchedule.push({ id: genId(outSchedule.map((o) => o.id)), stage: findStage(item.slot.room.en),