@doreamonjs/page-detail 1.12.29 → 1.12.31

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,22 @@
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.31](https://github.com/doreamonjs/doreamon/compare/v1.12.30...v1.12.31) (2024-10-16)
7
+
8
+ **Note:** Version bump only for package @doreamonjs/page-detail
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.12.30](https://github.com/doreamonjs/doreamon/compare/v1.12.29...v1.12.30) (2024-10-15)
15
+
16
+ **Note:** Version bump only for package @doreamonjs/page-detail
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.12.29](https://github.com/doreamonjs/doreamon/compare/v1.12.28...v1.12.29) (2024-10-15)
7
23
 
8
24
 
package/lib/index.js CHANGED
@@ -89,17 +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);
97
- }
98
- else if (typeof (values === null || values === void 0 ? void 0 : values._id) === 'string') {
99
- return id !== (values === null || values === void 0 ? void 0 : values._id);
100
- }
101
- else if (typeof (values === null || values === void 0 ? void 0 : values._id) === 'number') {
102
- 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
+ }
103
109
  }
104
110
  return false;
105
111
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doreamonjs/page-detail",
3
- "version": "1.12.29",
3
+ "version": "1.12.31",
4
4
  "description": "detail page",
5
5
  "keywords": [
6
6
  "doreamonjs",
@@ -71,7 +71,7 @@
71
71
  "@znode/fs": "^1.0.2"
72
72
  },
73
73
  "dependencies": {
74
- "@doreamonjs/components": "^1.12.27",
74
+ "@doreamonjs/components": "^1.12.31",
75
75
  "@zodash/doreamon": "^1.1.5",
76
76
  "antd": "4.18.9",
77
77
  "react-monaco-editor": "^0.50.1",
@@ -80,5 +80,5 @@
80
80
  "xterm-addon-attach": "^0.6.0",
81
81
  "xterm-addon-fit": "^0.5.0"
82
82
  },
83
- "gitHead": "c44df245efe55a0fc1fa1ffa0861aa913daa4730"
83
+ "gitHead": "d6705b4c36696c8a82fb3187b843334f45dc7ccd"
84
84
  }