eai-frontend-components 2.0.88 → 2.0.90
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.d.ts +11 -11
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
10189
|
+
const children = node?.children ?? [];
|
|
10190
10190
|
const hasChildren = children.length > 0;
|
|
10191
|
+
if (!node) {
|
|
10192
|
+
return jsxRuntime.jsx("div", { className: 'flex items-center text-sm text-foreground font-normal', children: "Nenhum registro dispon\u00EDvel" });
|
|
10193
|
+
}
|
|
10191
10194
|
const cardProps = {
|
|
10192
10195
|
node,
|
|
10193
10196
|
onNodeClick,
|