assui 3.2.47 → 3.2.49

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.
@@ -39,6 +39,7 @@ import Col from "antd/es/grid/col";
39
39
  import Row from "antd/es/grid/row";
40
40
  import Select from "antd/es/select";
41
41
  import omit from 'lodash/omit';
42
+ import isNil from 'lodash/isNil';
42
43
  import React from 'react';
43
44
  var ConditionSelect = function ConditionSelect(_a) {
44
45
  var option = _a.option,
@@ -53,7 +54,7 @@ var ConditionSelect = function ConditionSelect(_a) {
53
54
  componentValue = _b[0],
54
55
  setComponentValue = _b[1];
55
56
  var current = React.useMemo(function () {
56
- if (!componentValue || !componentValue[selectName] || !option || option.length === 0) {
57
+ if (isNil(componentValue) || isNil(componentValue[selectName]) || !option || option.length === 0) {
57
58
  return null;
58
59
  }
59
60
  var result = option.find(function (item) {
@@ -49,6 +49,7 @@ var col_1 = __importDefault(require("antd/lib/grid/col"));
49
49
  var row_1 = __importDefault(require("antd/lib/grid/row"));
50
50
  var select_1 = __importDefault(require("antd/lib/select"));
51
51
  var omit_1 = __importDefault(require("lodash/omit"));
52
+ var isNil_1 = __importDefault(require("lodash/isNil"));
52
53
  var react_1 = __importDefault(require("react"));
53
54
  var ConditionSelect = function ConditionSelect(_a) {
54
55
  var option = _a.option,
@@ -63,7 +64,7 @@ var ConditionSelect = function ConditionSelect(_a) {
63
64
  componentValue = _b[0],
64
65
  setComponentValue = _b[1];
65
66
  var current = react_1["default"].useMemo(function () {
66
- if (!componentValue || !componentValue[selectName] || !option || option.length === 0) {
67
+ if ((0, isNil_1["default"])(componentValue) || (0, isNil_1["default"])(componentValue[selectName]) || !option || option.length === 0) {
67
68
  return null;
68
69
  }
69
70
  var result = option.find(function (item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.2.47",
3
+ "version": "3.2.49",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -35,7 +35,7 @@
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
36
  "@types/react-color": "^3.0.6",
37
37
  "@types/react-resizable": "^3.0.0",
38
- "a-icons": "^1.2.36",
38
+ "a-icons": "^1.2.37",
39
39
  "aa-utils": "^2.1.31",
40
40
  "ahooks": "^3.0.8",
41
41
  "bignumber.js": "^9.0.1",
@@ -82,5 +82,5 @@
82
82
  "node": ">=10.0.0"
83
83
  },
84
84
  "license": "MIT",
85
- "gitHead": "0609e0e9038f30c8eb5de91fb9ca70203bb1b018"
85
+ "gitHead": "cb437eec4de7eb5f5f647b2d5782740bf7cf7a78"
86
86
  }