Skip to content

Commit

Permalink
Improved: condition check for disabling save button for system genera…
Browse files Browse the repository at this point in the history
…ted case (hotwax#237)
  • Loading branch information
k2maan committed Aug 24, 2023
1 parent b633b89 commit b650609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EditPickersModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default defineComponent({
// disable the save button if only 'System Generate' entry is there
// or if no pickers are selected
return (this.selectedPickers.length === 1
&& this.selectedPickers[0].name === 'System Generated')
&& !this.selectedPickers[0].id)
|| (!this.selectedPickers.length)
},
closeModal() {
Expand Down

0 comments on commit b650609

Please sign in to comment.