@@ -73,7 +73,7 @@ function DirectoryContentDialog(
7373) {
7474 const intl = useIntl ( ) ;
7575 const dispatch = useDispatch ( ) ;
76- const { snackError, snackWarning } = useSnackMessage ( ) ;
76+ const { snackError } = useSnackMessage ( ) ;
7777 const itemSelectionForCopy = useSelector ( ( state : AppState ) => state . itemSelectionForCopy ) ;
7878 const activeDirectory = useSelector ( ( state : AppState ) => state . activeDirectory ) ;
7979 const enableDeveloperMode = useSelector ( ( state : AppState ) => state . enableDeveloperMode ) ;
@@ -169,8 +169,7 @@ function DirectoryContentDialog(
169169 setOpenDescModificationDialog ( true ) ;
170170 } else if ( childrenMetadata [ event . data . elementUuid ] !== undefined ) {
171171 setActiveElement ( event . data ) ;
172- const childName = childrenMetadata [ event . data . elementUuid ] . elementName ;
173- setElementName ( childName ) ;
172+ setElementName ( childrenMetadata [ event . data . elementUuid ] . elementName ) ;
174173 setElementDescription ( childrenMetadata [ event . data . elementUuid ] . description ) ;
175174 const subtype = childrenMetadata [ event . data . elementUuid ] . specificMetadata . type as unknown as string ;
176175 /** set active directory on the store because it will be used while editing the contingency name */
@@ -181,13 +180,6 @@ function DirectoryContentDialog(
181180 if ( url ) {
182181 if ( selectedDirectoryWritable ) {
183182 window . open ( url , '_blank' ) ;
184- } else {
185- snackWarning ( {
186- messageTxt : intl . formatMessage (
187- { id : 'noWritePermissionOnStudy' } ,
188- { studyName : childName }
189- ) ,
190- } ) ;
191183 }
192184 } else {
193185 snackError ( {
@@ -249,7 +241,6 @@ function DirectoryContentDialog(
249241 setActiveElement ,
250242 setOpenDialog ,
251243 snackError ,
252- snackWarning ,
253244 ]
254245 ) ;
255246
0 commit comments