From 4bfea70dde20863bd5b836c39218e56e0b7ec38a Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 23 May 2023 10:27:42 +0200 Subject: [PATCH] Linting fix --- .../discourse/initializers/custom-wizard-edits.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 b/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 index 7eed8faf..c974fafb 100644 --- a/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 +++ b/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 @@ -69,7 +69,10 @@ export default { }, _wizardInsertText(text, options) { - if (this.session.wizardEventFieldId === this.fieldId && this.element) { + if ( + this.session.wizardEventFieldId === this.fieldId && + this.element + ) { this.insertText(text, options); } },