@m4l/layouts 9.3.14 → 9.3.16

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.
@@ -17,7 +17,7 @@ const createModuleLayoutStore = (initProps, storeDevtoolsEnabled = false) => {
17
17
  },
18
18
  dynamicActions: [],
19
19
  finalModuleActions: [],
20
- moduleActions: [],
20
+ moduleActions: moduleActions || [],
21
21
  version,
22
22
  buildTime
23
23
  };
@@ -30,7 +30,7 @@ const createModuleLayoutStore = (initProps, storeDevtoolsEnabled = false) => {
30
30
  */
31
31
  init: () => {
32
32
  set((state) => {
33
- state.finalModuleActions = (moduleActions || []).concat(state.dynamicActions);
33
+ state.finalModuleActions = (state.moduleActions || []).concat(state.dynamicActions);
34
34
  });
35
35
  },
36
36
  /**
@@ -38,7 +38,7 @@ const createModuleLayoutStore = (initProps, storeDevtoolsEnabled = false) => {
38
38
  */
39
39
  updateDynamicActions: (dynamicActions) => {
40
40
  set((state) => {
41
- const actionsConcatenated = (moduleActions || []).concat(dynamicActions);
41
+ const actionsConcatenated = (state.moduleActions || []).concat(dynamicActions);
42
42
  state.dynamicActions = dynamicActions;
43
43
  state.finalModuleActions = actionsConcatenated;
44
44
  setActions(actionsConcatenated, state.version, state.buildTime);
@@ -49,8 +49,8 @@ const createModuleLayoutStore = (initProps, storeDevtoolsEnabled = false) => {
49
49
  */
50
50
  updateModuleActions: (newModuleActions) => {
51
51
  set((state) => {
52
+ state.moduleActions = newModuleActions;
52
53
  const actionsConcatenated = newModuleActions.concat(state.dynamicActions);
53
- state.moduleActions = moduleActions;
54
54
  state.finalModuleActions = actionsConcatenated;
55
55
  setActions(actionsConcatenated, state.version, state.buildTime);
56
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.3.14",
3
+ "version": "9.3.16",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "lint-staged": {