Skip to content

Commit

Permalink
Update SettingsMiscellaneousTabLightGroups.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Nov 10, 2023
1 parent d1ffab3 commit f753672
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class SettingsMiscellaneousTabLightGroups extends Mixins(BaseMixi
convertName = convertName
private boolForm = false
private local_indices = [0]
private local_indices = [1]
private form: {
id: string | null
Expand Down Expand Up @@ -189,7 +189,11 @@ export default class SettingsMiscellaneousTabLightGroups extends Mixins(BaseMixi
}
set checkindex(newval: number) {
this.form.checkindex = newval
if (this.checkIndexAllowed(newval)) {
this.form.checkindex = newval
} else {
this.form.checkindex = this.local_indices[0] ?? 1
}
}
get checkindex() {
Expand Down

0 comments on commit f753672

Please sign in to comment.