Fix QR breaking when no sets
This commit is contained in:
parent
de1910268a
commit
323f34f5d4
|
@ -148,7 +148,7 @@ export class SettingsUi {
|
||||||
this.onQrSetChange();
|
this.onQrSetChange();
|
||||||
}
|
}
|
||||||
onQrSetChange() {
|
onQrSetChange() {
|
||||||
this.currentQrSet = QuickReplySet.get(this.currentSet.value);
|
this.currentQrSet = QuickReplySet.get(this.currentSet.value) ?? new QuickReplySet();
|
||||||
this.disableSend.checked = this.currentQrSet.disableSend;
|
this.disableSend.checked = this.currentQrSet.disableSend;
|
||||||
this.placeBeforeInput.checked = this.currentQrSet.placeBeforeInput;
|
this.placeBeforeInput.checked = this.currentQrSet.placeBeforeInput;
|
||||||
this.injectInput.checked = this.currentQrSet.injectInput;
|
this.injectInput.checked = this.currentQrSet.injectInput;
|
||||||
|
|
Loading…
Reference in New Issue