From 3ff194fc664ab3723dc79c24cc86a09b597af2e5 Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Wed, 26 Jun 2024 13:32:44 +0300 Subject: [PATCH] Refactoring. --- packages/client/src/store/CreateEditRoomStore.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/src/store/CreateEditRoomStore.js b/packages/client/src/store/CreateEditRoomStore.js index 831035cf26..1a83edb03f 100644 --- a/packages/client/src/store/CreateEditRoomStore.js +++ b/packages/client/src/store/CreateEditRoomStore.js @@ -50,7 +50,7 @@ class CreateEditRoomStore { infoPanelStore = null; currentQuotaStore = null; watermarksSettings = {}; - initialWatermarksSettings = null; + initialWatermarksSettings = {}; isImageType = false; constructor( @@ -181,7 +181,7 @@ class CreateEditRoomStore { !this.watermarksSettings.enabled, this.watermarksSettings.imageUrl, ); - + if ( !watermarkImage && !this.watermarksSettings.enabled && @@ -197,7 +197,7 @@ class CreateEditRoomStore { imageHeight: watermarksSettings.imageHeight, }); } - + const { uploadRoomLogo } = this.filesStore; const uploadWatermarkData = new FormData();