diff --git a/src/components/DirectoryItemSelector/directory-item-selector.tsx b/src/components/DirectoryItemSelector/directory-item-selector.tsx index f6017762..d5f602a4 100644 --- a/src/components/DirectoryItemSelector/directory-item-selector.tsx +++ b/src/components/DirectoryItemSelector/directory-item-selector.tsx @@ -77,7 +77,7 @@ function updatedTree(prevRoots: any[], prevMap: any, nodeId: UUID | null, childr return pn; } if (pn.parentUuid !== nodeId) { - console.warn(`reparent ${pn.parentUuid} -> ${nodeId}`); + console.warn(`reparent ${pn?.parentUuid} -> ${nodeId}`); } return { ...pn,