mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-05 04:08:43 +01:00
fix for settings dom undefined
This commit is contained in:
parent
e01b51e6bd
commit
de8dc7310f
@ -367,7 +367,7 @@ export class QuickReply {
|
||||
*/
|
||||
updateMessage(value) {
|
||||
if (this.onUpdate) {
|
||||
if (this.settingsDomMessage.value != value) {
|
||||
if (this.settingsDomMessage && this.settingsDomMessage.value != value) {
|
||||
this.settingsDomMessage.value = value;
|
||||
}
|
||||
this.message = value;
|
||||
@ -381,7 +381,7 @@ export class QuickReply {
|
||||
*/
|
||||
updateLabel(value) {
|
||||
if (this.onUpdate) {
|
||||
if (this.settingsDomLabel.value != value) {
|
||||
if (this.settingsDomLabel && this.settingsDomLabel.value != value) {
|
||||
this.settingsDomLabel.value = value;
|
||||
}
|
||||
this.label = value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user