@chaoswise/ui 2.3.11 → 2.3.12

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.
@@ -118,6 +118,9 @@ function CWTree(_ref) {
118
118
  });
119
119
  }
120
120
  var _treeData = useMemo(function () {
121
+ if (!treeData) {
122
+ return [];
123
+ }
121
124
  return createTree(treeData, searchValue, caseSensitive, rest.checkable);
122
125
  }, [searchHighlight, treeData, searchValue, rest.checkable, caseSensitive]);
123
126
  function buildMenu(array) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaoswise/ui",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "公共UI库",
5
5
  "keywords": [
6
6
  "ui",
@@ -140,5 +140,5 @@
140
140
  "access": "public"
141
141
  },
142
142
  "license": "MIT",
143
- "gitHead": "b43201bccc63f00e99a7144afec62280ec3465fc"
143
+ "gitHead": "7b692dc324093295cdadeffb0f2eca49e4064d56"
144
144
  }