diff --git a/src/frontend/src/components/forms/fields/TreeField.tsx b/src/frontend/src/components/forms/fields/TreeField.tsx index f10571c3b8..fe69471639 100644 --- a/src/frontend/src/components/forms/fields/TreeField.tsx +++ b/src/frontend/src/components/forms/fields/TreeField.tsx @@ -215,7 +215,8 @@ export function TreeField({ const selectedLabel = useMemo(() => { if (selectValue == null) return ''; - return nodeMap[selectValue]?.name ?? selectValue; + const node = nodeMap[selectValue]; + return node?.pathstring ?? node?.name ?? selectValue; }, [nodeMap, selectValue]); const inputSearchValue = isDropdownOpen ? searchValue : selectedLabel;