Skip to content

Commit 2d7680b

Browse files
sorcery suggested fixes
1 parent b4e3bc6 commit 2d7680b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/pretalx/frontend/schedule-editor/src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ async function pollUpdates() {
519519
schedule.value.talks = updatedTalks
520520
}
521521
since.value = sched.now || schedule.value.now
522-
window.setTimeout(pollUpdates, 10 * 30)
522+
window.setTimeout(pollUpdates, 10 * 125)
523523
}
524524
525525
onBeforeMount(async () => {
@@ -529,14 +529,14 @@ onBeforeMount(async () => {
529529
locales.value = schedule.value.locales
530530
eventSlug.value = window.location.pathname.split('/')[3] ?? null
531531
currentDay.value = days.value[0]
532-
window.setTimeout(pollUpdates, 10 * 30)
532+
window.setTimeout(pollUpdates, 10 * 100)
533533
await fetchAdditionalScheduleData()
534534
await new Promise<void>((resolve) => {
535535
const poll = () => {
536536
const el = document.querySelector('.pretalx-schedule')
537537
// @ts-ignore
538538
if (el && (el.parentElement || el.getRootNode().host)) return resolve()
539-
setTimeout(poll, 80)
539+
setTimeout(poll, 100)
540540
}
541541
poll()
542542
})

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</template>
3434

3535
<script lang="ts" setup>
36-
import { ref, computed, watch, onMounted, onUnmounted, defineProps, defineEmits, nextTick } from 'vue'
36+
import { ref, computed, watch, onMounted, onUnmounted, nextTick } from 'vue'
3737
import moment, { Moment } from 'moment-timezone'
3838
import Session from './Session.vue'
3939
import { getLocalizedString } from '~/utils'
@@ -634,6 +634,7 @@ onMounted(async () => {
634634
})
635635
636636
onUnmounted(() => {
637+
timesliceRefs.value = []
637638
if (observer) {
638639
observer.disconnect()
639640
observer = null

0 commit comments

Comments
 (0)