Skip to content

Commit c7313ca

Browse files
committed
chore(core): cleanup
1 parent 4666fec commit c7313ca

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/core/src/composables/useNodesData.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ export function useNodesData(_nodeIds: any): any {
3434
if (!Array.isArray(nodeIds)) {
3535
const node = findNode(nodeIds)
3636

37-
return node?.data ?? null
37+
if (node) {
38+
return {
39+
id: node.id,
40+
type: node.type,
41+
data: node.data,
42+
}
43+
}
44+
45+
return null
3846
}
3947

4048
const data = []

0 commit comments

Comments
 (0)