eai-frontend-components 2.0.88 → 2.0.89

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.js CHANGED
@@ -10186,8 +10186,11 @@ function NodeCard({ node, onNodeClick, isExpanded, hasChildren, onToggle }) {
10186
10186
  }
10187
10187
  function OrgChartTreeNode({ node, onNodeClick, defaultExpanded, renderNode }) {
10188
10188
  const [isExpanded, setIsExpanded] = React$1.useState(defaultExpanded);
10189
- const children = node.children ?? [];
10189
+ const children = node?.children ?? [];
10190
10190
  const hasChildren = children.length > 0;
10191
+ if (!node) {
10192
+ return jsxRuntime.jsx("div", { className: 'flex flex-col items-center text-sm font-medium', children: "Nenhum dado dispon\u00EDvel" });
10193
+ }
10191
10194
  const cardProps = {
10192
10195
  node,
10193
10196
  onNodeClick,