@ecoding/components.antd 0.4.13 → 0.4.14

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.
@@ -143,7 +143,7 @@ const AsyncSelect = memo((props) => {
143
143
  v = null;
144
144
  }
145
145
  else {
146
- v = v || null;
146
+ v = isSomething(v) ? v : null;
147
147
  }
148
148
  }
149
149
  case 'undefined':
@@ -152,7 +152,7 @@ const AsyncSelect = memo((props) => {
152
152
  v = undefined;
153
153
  }
154
154
  else {
155
- v = v || undefined;
155
+ v = isSomething(v) ? v : undefined;
156
156
  }
157
157
  }
158
158
  default: {
@@ -160,7 +160,7 @@ const AsyncSelect = memo((props) => {
160
160
  v = null;
161
161
  }
162
162
  else {
163
- v = v || null;
163
+ v = isSomething(v) ? v : null;
164
164
  }
165
165
  }
166
166
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TreeSelect } from 'antd';
3
+ import { isSomething } from "@ecoding/helper.is";
3
4
  const processTreeData = (data) => {
4
5
  return data.map((node) => {
5
6
  const processedNode = Object.assign({}, node);
@@ -22,7 +23,7 @@ const C = (props) => {
22
23
  v = null;
23
24
  }
24
25
  else {
25
- v = v || null;
26
+ v = isSomething(v) ? v : null;
26
27
  }
27
28
  }
28
29
  case 'undefined':
@@ -31,7 +32,7 @@ const C = (props) => {
31
32
  v = undefined;
32
33
  }
33
34
  else {
34
- v = v || undefined;
35
+ v = isSomething(v) ? v : undefined;
35
36
  }
36
37
  }
37
38
  default: {
@@ -39,7 +40,7 @@ const C = (props) => {
39
40
  v = null;
40
41
  }
41
42
  else {
42
- v = v || null;
43
+ v = isSomething(v) ? v : null;
43
44
  }
44
45
  }
45
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecoding/components.antd",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "author": "cxc",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -47,5 +47,5 @@
47
47
  "antd": "5.27.0",
48
48
  "axios": "^1.1.2"
49
49
  },
50
- "gitHead": "c84424237fea09d08802f62867792af9726858cb"
50
+ "gitHead": "ce02f3957aa4d0f64f0b75d5c724de59ff216db3"
51
51
  }