From 247f70f79c360e1e42d547953bcfe93ae3666be1 Mon Sep 17 00:00:00 2001 From: communiteq Date: Tue, 15 Feb 2022 18:40:48 +0100 Subject: [PATCH] Fix bug regarding Chat on stable (#15954) --- .../javascripts/discourse/app/mixins/composer-upload-uppy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/mixins/composer-upload-uppy.js b/app/assets/javascripts/discourse/app/mixins/composer-upload-uppy.js index c7a2456c0a9..4633b55f0b8 100644 --- a/app/assets/javascripts/discourse/app/mixins/composer-upload-uppy.js +++ b/app/assets/javascripts/discourse/app/mixins/composer-upload-uppy.js @@ -107,7 +107,7 @@ export default Mixin.create(ExtendableUploader, UppyS3Multipart, { this.fileInputEl, this._addFiles ); - this.editorEl.addEventListener("paste", this.pasteEventListener); + this.editorEl?.addEventListener("paste", this.pasteEventListener); this._uppyInstance = new Uppy({ id: this.uppyId,