feat: flow export/import + procedural Flow Assist #96
@@ -855,7 +855,7 @@ export const useTreeEditorStore = create<TreeEditorState>()(
|
|||||||
|
|
||||||
// Check for orphaned nodes (not root and not referenced)
|
// Check for orphaned nodes (not root and not referenced)
|
||||||
allNodeIds.forEach(id => {
|
allNodeIds.forEach(id => {
|
||||||
if (id !== 'root' && !referencedIds.has(id)) {
|
if (id !== state.treeStructure?.id && !referencedIds.has(id)) {
|
||||||
// Check if it's a direct child of another node (via children array)
|
// Check if it's a direct child of another node (via children array)
|
||||||
let isChildOfAny = false
|
let isChildOfAny = false
|
||||||
const checkIfChild = (node: TreeStructure) => {
|
const checkIfChild = (node: TreeStructure) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user