chore(core): cleanup

This commit is contained in:
braks
2024-02-21 12:02:13 +01:00
committed by Braks
parent 4666fecc39
commit c7313ca421

View File

@@ -34,7 +34,15 @@ export function useNodesData(_nodeIds: any): any {
if (!Array.isArray(nodeIds)) {
const node = findNode(nodeIds)
return node?.data ?? null
if (node) {
return {
id: node.id,
type: node.type,
data: node.data,
}
}
return null
}
const data = []