@ws-ui/store 1.12.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -12330,14 +12330,14 @@ const rL = (e) => e.reduce((t, r) => ({
12330
12330
  reducers: {
12331
12331
  setSetting(e, t) {
12332
12332
  const { path: r, settingsKey: n, value: s } = t.payload;
12333
- e[r][n] = s;
12333
+ r === "project" ? typeof e[r] == "object" && (e[r][n] = s) : e[r][n] = s;
12334
12334
  },
12335
12335
  setSettings(e, t) {
12336
12336
  const { path: r, value: n } = t.payload;
12337
- e[r] = {
12337
+ typeof n == "string" && r === "project" ? e[r] = n : typeof n == "object" && r !== "project" && (e[r] = {
12338
12338
  ...e[r],
12339
12339
  ...n
12340
- };
12340
+ });
12341
12341
  },
12342
12342
  setSettingsAsText(e, t) {
12343
12343
  const { path: r, settings: n } = t.payload;
@@ -12347,11 +12347,11 @@ const rL = (e) => e.reduce((t, r) => ({
12347
12347
  extraReducers(e) {
12348
12348
  e.addCase(C_.fulfilled, (t, r) => {
12349
12349
  t.project = {
12350
- ...t.project,
12350
+ ...typeof t.project == "object" ? t.project : {},
12351
12351
  ...r.payload.content
12352
12352
  };
12353
12353
  }), e.addCase(LD.fulfilled, (t, r) => {
12354
- t.server = r.payload, t.server.qodly && (t.project["webforms.display-mode"] = "airy");
12354
+ t.server = r.payload, t.server.qodly && typeof t.project == "object" && (t.project["webforms.display-mode"] = "airy");
12355
12355
  });
12356
12356
  }
12357
12357
  }), { setSetting: A_, setSettings: Ff, setSettingsAsText: FD } = O_.actions, qD = O_.reducer, Ly = [