@@ -156,6 +156,7 @@ function DirectoryContentDialog(
156
156
setActiveElement ( event . data ) ;
157
157
setOpenDescModificationDialog ( true ) ;
158
158
} else if ( childrenMetadata [ event . data . elementUuid ] !== undefined ) {
159
+ setActiveElement ( event . data ) ;
159
160
setElementName ( childrenMetadata [ event . data . elementUuid ] . elementName ) ;
160
161
const subtype = childrenMetadata [ event . data . elementUuid ] . specificMetadata . type as unknown as string ;
161
162
/** set active directory on the store because it will be used while editing the contingency name */
@@ -283,7 +284,7 @@ function DirectoryContentDialog(
283
284
/>
284
285
) ;
285
286
}
286
- if ( currentExplicitNamingFilterId !== undefined ) {
287
+ if ( currentExplicitNamingFilterId !== undefined && activeElement ) {
287
288
return (
288
289
< ExplicitNamingFilterEditionDialog
289
290
id = { currentExplicitNamingFilterId }
@@ -298,10 +299,11 @@ function DirectoryContentDialog(
298
299
activeDirectory = { activeDirectory }
299
300
elementExists = { elementExists }
300
301
language = { languageLocal }
302
+ description = { activeElement . description }
301
303
/>
302
304
) ;
303
305
}
304
- if ( currentExpertFilterId !== undefined ) {
306
+ if ( currentExpertFilterId !== undefined && activeElement ) {
305
307
return (
306
308
< ExpertFilterEditionDialog
307
309
id = { currentExpertFilterId }
@@ -316,6 +318,7 @@ function DirectoryContentDialog(
316
318
activeDirectory = { activeDirectory }
317
319
elementExists = { elementExists }
318
320
language = { languageLocal }
321
+ description = { activeElement . description }
319
322
/>
320
323
) ;
321
324
}
0 commit comments