Skip to content

Commit 9ede706

Browse files
bug fixes
1 parent 61c0781 commit 9ede706

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/pretalx/frontend/schedule-editor/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pretalx/frontend/schedule-editor/src/components/GridSchedule.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
session(v-if="draggedSession && hoverSlice", :style="getHoverSliceStyle()", :session="draggedSession", :isDragClone="true", :overrideStart="hoverSlice.time")
1616
template(v-for="session of visibleSessions", :key="session.id")
1717
session(
18+
v-if="hasValidPosition(session)"
1819
:session="session",
1920
:warnings="session.code ? warnings[session.code] : []",
2021
:isDragged="draggedSession && (session.id === draggedSession.id)",
@@ -138,6 +139,10 @@ const timesliceRefs = ref<HTMLElement[]>([])
138139
139140
let observer: IntersectionObserver | null = null
140141
142+
const hasValidPosition = (session: SessionDatum): boolean => {
143+
return !!(session.room && session.start && session.end)
144+
}
145+
141146
const getSliceName = (date: Moment): string => `slice-${date.format('MM-DD-HH-mm')}`
142147
143148
const hoverSliceLegal = computed(() => {

0 commit comments

Comments
 (0)