Skip to content

Commit

Permalink
fix: Hidden nodes causes Flyt to crash (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
nesadrian authored Dec 16, 2024
1 parent 5efa058 commit b237bc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/canvas/utils/createHiddenNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const createHiddenNode = (
children: [],
shapeHeight: shapeSize.height,
shapeWidth: shapeSize.width,
type: NodeTypes.hidden,
},
position: { x: 0, y: 0 },
type: NodeTypes.hidden,
Expand Down
2 changes: 1 addition & 1 deletion types/NodeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ export type NodeDataHidden = Pick<
| "shapeHeight"
| "shapeWidth"
> &
Pick<NodeDataApi, "children">;
Pick<NodeDataApi, "children" | "type">;

export type NodeDataFull = NodeDataCommon | NodeDataHidden;

0 comments on commit b237bc2

Please sign in to comment.