vineanova-redux-artifacts 1.36.0 → 1.37.0
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
|
@@ -91,7 +91,7 @@ var createNamedReducer = function createNamedReducer() {
|
|
|
91
91
|
value = payload.value;
|
|
92
92
|
if (!Array.isArray(state.data)) return state;
|
|
93
93
|
if (!key) return state;
|
|
94
|
-
if (!
|
|
94
|
+
if (!entityId) return state;
|
|
95
95
|
var newEntities = state.data.map(function (entity) {
|
|
96
96
|
if (entity.id === entityId) {
|
|
97
97
|
return _objectSpread(_objectSpread({}, entity), {}, _defineProperty({}, key, value));
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ const createNamedReducer = (reducerName = '') =>
|
|
|
59
59
|
const { entityId, key, value } = payload;
|
|
60
60
|
if(!Array.isArray(state.data)) return state;
|
|
61
61
|
if(!key) return state;
|
|
62
|
-
if(!
|
|
62
|
+
if(!entityId) return state;
|
|
63
63
|
const newEntities = state.data.map(entity => {
|
|
64
64
|
if (entity.id === entityId) {
|
|
65
65
|
return {
|