Widget: Fix issue navigating back to month calendar

This commit is contained in:
Raphael Michel
2020-06-18 16:38:58 +02:00
parent 0d45706608
commit de9f7248cc

View File

@@ -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";