Skip to content

Commit

Permalink
fix(ui): ensure mode is set when no one is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed May 19, 2023
1 parent c6a36e3 commit 4a48b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/nodes-table/NodeScheduler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default {
},
computed: {
schedule() {
return this.node.schedule[this.mode]
return this.node.schedule[this.mode || 'daily']
},
supportedModes() {
return this.modes.filter((m) => {
Expand Down Expand Up @@ -290,7 +290,7 @@ export default {
},
},
mounted() {
this.mode = this.activeMode
this.mode = this.activeMode || 'daily'
},
methods: {
...mapActions(useBaseStore, ['showSnackbar']),
Expand Down

0 comments on commit 4a48b1f

Please sign in to comment.