diff --git a/src/controls/modernTaxonomyPicker/taxonomyTree/TaxonomyTree.tsx b/src/controls/modernTaxonomyPicker/taxonomyTree/TaxonomyTree.tsx index e332126fa..667808a0e 100644 --- a/src/controls/modernTaxonomyPicker/taxonomyTree/TaxonomyTree.tsx +++ b/src/controls/modernTaxonomyPicker/taxonomyTree/TaxonomyTree.tsx @@ -670,6 +670,13 @@ export function TaxonomyTree( IChoiceGroupStyles > = { root: { flex: "1" }, flexContainer: { width: "100%" } }; + const getSelectedKey = (): string | null => { + const selectedItems = props.selection?.getSelection() as ITermInfo[] | undefined; + return selectedItems?.[0]?.id ?? null; + }; + + + return (