From 119d4d590300d4e2d3524af5440e18cf0f1e7d4c Mon Sep 17 00:00:00 2001 From: basseche Date: Thu, 2 Jan 2025 13:34:40 +0100 Subject: [PATCH] Allow Editing description from filter dialogs --- src/components/directory-content-dialog.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/directory-content-dialog.tsx b/src/components/directory-content-dialog.tsx index 13cec461..b6f492ce 100644 --- a/src/components/directory-content-dialog.tsx +++ b/src/components/directory-content-dialog.tsx @@ -156,6 +156,7 @@ function DirectoryContentDialog( setActiveElement(event.data); setOpenDescModificationDialog(true); } else if (childrenMetadata[event.data.elementUuid] !== undefined) { + setActiveElement(event.data); setElementName(childrenMetadata[event.data.elementUuid].elementName); const subtype = childrenMetadata[event.data.elementUuid].specificMetadata.type as unknown as string; /** set active directory on the store because it will be used while editing the contingency name */ @@ -283,7 +284,7 @@ function DirectoryContentDialog( /> ); } - if (currentExplicitNamingFilterId !== undefined) { + if (currentExplicitNamingFilterId !== undefined && activeElement) { return ( ); } - if (currentExpertFilterId !== undefined) { + if (currentExpertFilterId !== undefined && activeElement) { return ( ); }