@panneau/data 3.0.295 → 3.0.307
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/es/index.js +6 -6
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -256,13 +256,13 @@ var useItems$1 = function useItems(_ref) {
|
|
|
256
256
|
return currentItems;
|
|
257
257
|
}
|
|
258
258
|
return (currentItems || []).map(function (item) {
|
|
259
|
-
var
|
|
260
|
-
|
|
261
|
-
itemId =
|
|
259
|
+
var _ref0 = item || {},
|
|
260
|
+
_ref0$id = _ref0.id,
|
|
261
|
+
itemId = _ref0$id === void 0 ? null : _ref0$id;
|
|
262
262
|
var updated = (updatedItems || []).find(function () {
|
|
263
|
-
var
|
|
264
|
-
|
|
265
|
-
id =
|
|
263
|
+
var _ref1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
264
|
+
_ref1$id = _ref1.id,
|
|
265
|
+
id = _ref1$id === void 0 ? null : _ref1$id;
|
|
266
266
|
return id === itemId;
|
|
267
267
|
}) || null;
|
|
268
268
|
if (updated !== null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/data",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.307",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@babel/runtime": "^7.12.5",
|
|
60
60
|
"@folklore/fetch": "^0.1.17",
|
|
61
61
|
"@folklore/routes": "^0.2.26",
|
|
62
|
-
"@panneau/core": "^3.0.
|
|
62
|
+
"@panneau/core": "^3.0.307",
|
|
63
63
|
"@tanstack/react-query": "^5.29.2",
|
|
64
64
|
"lodash-es": "^4.17.21",
|
|
65
65
|
"prop-types": "^15.7.2",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "cbe5e8b1705d01c5653a4df617a06243344310d3"
|
|
72
72
|
}
|