Skip to content

Commit

Permalink
fix(react): tree maybe undefined (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
cncolder committed Aug 19, 2021
1 parent fd915cf commit 0c09ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/widgets/ComponentTreeWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const ComponentTreeWidget: React.FC<IComponentTreeWidgetProps> =
)
}
}, [])
if (designer) {
if (designer && tree) {
dataId[designer?.props?.nodeIdAttrName] = tree.id
}
return (
Expand Down

0 comments on commit 0c09ff4

Please sign in to comment.