Make sure default value for range is set
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
snackbar: false,
|
||||
snackColor: "success",
|
||||
snackText: "",
|
||||
range: undefined,
|
||||
range: "ONE_WEEK",
|
||||
ranges: [
|
||||
{name: "1 vecka", value: "ONE_WEEK"},
|
||||
{name: "2 veckor", value: "TWO_WEEKS"},
|
||||
@@ -120,7 +120,7 @@
|
||||
mounted() {
|
||||
this.$store.commit('setTitle', 'Evenemang');
|
||||
const {range} = this.$route.query;
|
||||
this.range = range;
|
||||
this.range = range || "ONE_WEEK";
|
||||
this.fetchUser();
|
||||
this.fetchEvents();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user