ywana-core8 0.0.545 → 0.0.546

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/dist/index.cjs CHANGED
@@ -5438,13 +5438,14 @@ var CollectionTree = function CollectionTree(props) {
5438
5438
  label: title,
5439
5439
  open: true
5440
5440
  }, node.nodes ? renderNodes(node.nodes) : node.items.map(function (item) {
5441
+ var selected = pageContext.selected && item.id === pageContext.selected.id;
5441
5442
  return /*#__PURE__*/React__default["default"].createElement(TreeItem, {
5442
5443
  icon: icon,
5443
5444
  key: item.id,
5444
5445
  id: item.id,
5445
5446
  label: item.name,
5446
5447
  onSelect: select,
5447
- selected: item.id === pageContext.selected
5448
+ selected: selected
5448
5449
  }, "item");
5449
5450
  }));
5450
5451
  });