@flowerforce/flower-core 3.5.1 → 3.5.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 3.5.2 (2025-04-23)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - fix init nodes ([996d8af](https://github.com/flowerforce/flower/commit/996d8af))
7
+
8
+ - package lock ([a3bb210](https://github.com/flowerforce/flower/commit/a3bb210))
9
+
1
10
  ## 3.5.1 (2025-04-19)
2
11
 
3
12
 
package/dist/index.cjs.js CHANGED
@@ -593,7 +593,7 @@ const FlowerCoreReducers = {
593
593
  nodes: generateNodes(payload.nodes),
594
594
  nextRules: makeObjectRules(payload.nodes),
595
595
  data: Object.keys(payload.initialData).length === 0
596
- ? state.data ?? {}
596
+ ? _get(state, [payload.name, 'data'], {})
597
597
  : payload.initialData
598
598
  });
599
599
  },
package/dist/index.esm.js CHANGED
@@ -591,7 +591,7 @@ const FlowerCoreReducers = {
591
591
  nodes: generateNodes(payload.nodes),
592
592
  nextRules: makeObjectRules(payload.nodes),
593
593
  data: Object.keys(payload.initialData).length === 0
594
- ? state.data ?? {}
594
+ ? _get(state, [payload.name, 'data'], {})
595
595
  : payload.initialData
596
596
  });
597
597
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowerforce/flower-core",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "Core functions for flowerJS",
5
5
  "repository": {
6
6
  "type": "git",