mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix QR breaking when no sets
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user