chore(core): cleanup
This commit is contained in:
@@ -34,7 +34,15 @@ export function useNodesData(_nodeIds: any): any {
|
|||||||
if (!Array.isArray(nodeIds)) {
|
if (!Array.isArray(nodeIds)) {
|
||||||
const node = findNode(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 = []
|
const data = []
|
||||||
|
|||||||
Reference in New Issue
Block a user