fix deleting QR set that's in chat config

This commit is contained in:
LenAnderson
2023-12-26 12:16:45 +00:00
parent 89e94edc57
commit d51098a90b

View File

@ -233,8 +233,8 @@ export class SettingsUi {
} }
if (this.settings.chatConfig) { if (this.settings.chatConfig) {
for (let i = this.settings.chatConfig.setList.length - 1; i >= 0; i--) { for (let i = this.settings.chatConfig.setList.length - 1; i >= 0; i--) {
if (this.settings.config.setList[i].set == qrs) { if (this.settings.chatConfig.setList[i].set == qrs) {
this.settings.config.setList.splice(i, 1); this.settings.chatConfig.setList.splice(i, 1);
} }
} }
} }