@gingkoo/pandora-explorer 0.0.1-alpha.71 → 0.0.1-alpha.72

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/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-explorer v0.0.1-alpha.71
2
+ * @gingkoo/pandora-explorer v0.0.1-alpha.72
3
3
  */
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import cx$1 from 'classnames';
@@ -5601,7 +5601,7 @@ const addLevel = (data, levelIndex = 0, type, filedata) => {
5601
5601
  if (type == 'tree' && item?.hasFolder == 0) {
5602
5602
  item['isLeaf'] = true;
5603
5603
  }
5604
- if (item?.hasFolder == 0 && item?.hasFile == 0) {
5604
+ if (type == 'table' && item?.hasFolder == 0 && item?.hasFile == 0) {
5605
5605
  item['isLeaf'] = true;
5606
5606
  }
5607
5607
  if (!item?.api && !item?.children) {
@@ -8011,6 +8011,9 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
8011
8011
  item.api = true;
8012
8012
  item.isLeaf = false;
8013
8013
  item.children = [];
8014
+ if (item?.hasFolder == 0) {
8015
+ item.hasFolder = null;
8016
+ }
8014
8017
  }
8015
8018
  if (Array.isArray(item.children)) {
8016
8019
  item.children = addData(item.children, key);