From de9f7248ccabc0ac1d4e0f41f7d1228f7401753c Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 18 Jun 2020 16:38:58 +0200 Subject: [PATCH] Widget: Fix issue navigating back to month calendar --- src/pretix/static/pretixpresale/js/widget/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 483d9e869a..54d766c84f 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -820,9 +820,9 @@ Vue.component('pretix-widget-event-form', { this.$root.error = null; this.$root.subevent = null; this.$root.trigger_load_callback(); - if (this.$root.events !== undefined) { + if (this.$root.events !== undefined && this.$root.events !== null) { this.$root.view = "events"; - } else if (this.$root.days !== undefined) { + } else if (this.$root.days !== undefined && this.$root.days !== null) { this.$root.view = "days"; } else { this.$root.view = "weeks";