Refactoring.

This commit is contained in:
Tatiana Lopaeva 2024-06-26 13:32:44 +03:00
parent 523bf28fd9
commit 3ff194fc66

View File

@ -50,7 +50,7 @@ class CreateEditRoomStore {
infoPanelStore = null; infoPanelStore = null;
currentQuotaStore = null; currentQuotaStore = null;
watermarksSettings = {}; watermarksSettings = {};
initialWatermarksSettings = null; initialWatermarksSettings = {};
isImageType = false; isImageType = false;
constructor( constructor(
@ -181,7 +181,7 @@ class CreateEditRoomStore {
!this.watermarksSettings.enabled, !this.watermarksSettings.enabled,
this.watermarksSettings.imageUrl, this.watermarksSettings.imageUrl,
); );
if ( if (
!watermarkImage && !watermarkImage &&
!this.watermarksSettings.enabled && !this.watermarksSettings.enabled &&
@ -197,7 +197,7 @@ class CreateEditRoomStore {
imageHeight: watermarksSettings.imageHeight, imageHeight: watermarksSettings.imageHeight,
}); });
} }
const { uploadRoomLogo } = this.filesStore; const { uploadRoomLogo } = this.filesStore;
const uploadWatermarkData = new FormData(); const uploadWatermarkData = new FormData();