From 5a399eac99937992c51ea603013816c8fdeef5a3 Mon Sep 17 00:00:00 2001 From: gazizova-vlada Date: Mon, 12 Sep 2022 21:08:50 +0300 Subject: [PATCH] Web:Common:Added an entry in the localStorage of the default setting data CompanyInfoSettings. --- packages/common/store/SettingsStore.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/common/store/SettingsStore.js b/packages/common/store/SettingsStore.js index b017be89e0..6aa462fe2a 100644 --- a/packages/common/store/SettingsStore.js +++ b/packages/common/store/SettingsStore.js @@ -345,7 +345,17 @@ class SettingsStore { getCompanyInfoSettings = async () => { const res = await api.settings.getCompanyInfoSettings(); + + delete res.IsLicensor; + this.setCompanyInfoSettingsData(res); + + if (!localStorage.getItem("defaultDataCompanyInfoSettings")) { + localStorage.setItem( + "defaultDataCompanyInfoSettings", + JSON.stringify(res) + ); + } }; restoreCompanyInfoSettings = async () => {