@doreamonjs/page-detail 1.12.27 → 1.12.30

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
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.12.30](https://github.com/doreamonjs/doreamon/compare/v1.12.29...v1.12.30) (2024-10-15)
7
+
8
+ **Note:** Version bump only for package @doreamonjs/page-detail
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.12.29](https://github.com/doreamonjs/doreamon/compare/v1.12.28...v1.12.29) (2024-10-15)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **page-detail:** loading add check values._id ([185bf8c](https://github.com/doreamonjs/doreamon/commit/185bf8c0de7dd6dd863c32d7a2d41d5c154b4694))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.12.27](https://github.com/doreamonjs/doreamon/compare/v1.12.26...v1.12.27) (2024-08-12)
7
26
 
8
27
  **Note:** Version bump only for package @doreamonjs/page-detail
package/lib/index.js CHANGED
@@ -89,11 +89,23 @@ const DetailPage = (props) => {
89
89
  if (Object.keys(values).length === 0) {
90
90
  return true;
91
91
  }
92
- if (typeof (values === null || values === void 0 ? void 0 : values.id) === 'string') {
93
- return id !== (values === null || values === void 0 ? void 0 : values.id);
92
+ // check values.id
93
+ if (!!(values === null || values === void 0 ? void 0 : values.id)) {
94
+ if (typeof (values === null || values === void 0 ? void 0 : values.id) === 'string') {
95
+ return id !== (values === null || values === void 0 ? void 0 : values.id);
96
+ }
97
+ else if (typeof (values === null || values === void 0 ? void 0 : values.id) === 'number') {
98
+ return +id !== (values === null || values === void 0 ? void 0 : values.id);
99
+ }
94
100
  }
95
- else if (typeof (values === null || values === void 0 ? void 0 : values.id) === 'number') {
96
- return +id !== (values === null || values === void 0 ? void 0 : values.id);
101
+ else if (!!(values === null || values === void 0 ? void 0 : values._id)) {
102
+ // check values._id
103
+ if (typeof (values === null || values === void 0 ? void 0 : values._id) === 'string') {
104
+ return id !== (values === null || values === void 0 ? void 0 : values._id);
105
+ }
106
+ else if (typeof (values === null || values === void 0 ? void 0 : values._id) === 'number') {
107
+ return +id !== (values === null || values === void 0 ? void 0 : values._id);
108
+ }
97
109
  }
98
110
  return false;
99
111
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doreamonjs/page-detail",
3
- "version": "1.12.27",
3
+ "version": "1.12.30",
4
4
  "description": "detail page",
5
5
  "keywords": [
6
6
  "doreamonjs",
@@ -80,5 +80,5 @@
80
80
  "xterm-addon-attach": "^0.6.0",
81
81
  "xterm-addon-fit": "^0.5.0"
82
82
  },
83
- "gitHead": "f377807977cb7d964ff8e5754c87808d1c8f2de8"
83
+ "gitHead": "d1063c845562a1359d0cae27d7e1da821900d823"
84
84
  }