Web:Common:Added an entry in the localStorage of the default setting data CompanyInfoSettings.

This commit is contained in:
Vlada Gazizova 2022-09-12 21:08:50 +03:00
parent 97743830b3
commit 5a399eac99

View File

@ -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 () => {