fix: shows the proper parent node names once selected in the edit node modal

This commit is contained in:
findthelorax
2026-04-19 23:58:09 -04:00
committed by Remy
parent 9f880395da
commit c9a402fa0a
+5 -1
View File
@@ -268,7 +268,11 @@ export function NodeModal({ open, onClose, onSubmit, initial, title = 'Add Node'
onValueChange={(v) => set('parent_id', v === 'none' ? undefined : v)}
>
<SelectTrigger className="bg-[#21262d] border-[#30363d] text-sm h-8">
<SelectValue placeholder="None (standalone)" />
<SelectValue placeholder="None (standalone)">
{form.parent_id
? (parentContainerNodes.find((n) => n.id === form.parent_id)?.label ?? 'None (standalone)')
: 'None (standalone)'}
</SelectValue>
</SelectTrigger>
<SelectContent className="bg-[#21262d] border-[#30363d]">
<SelectItem value="none" className="text-sm">None (standalone)</SelectItem>