fix for settings dom undefined

This commit is contained in:
LenAnderson 2023-12-24 00:29:44 +00:00
parent e01b51e6bd
commit de8dc7310f
1 changed files with 2 additions and 2 deletions

View File

@ -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;