diff --git a/src/sharedData/components/SharedDataEntryFile.js b/src/sharedData/components/SharedDataEntryFile.js index c4d09fc517..09b769e3a5 100644 --- a/src/sharedData/components/SharedDataEntryFile.js +++ b/src/sharedData/components/SharedDataEntryFile.js @@ -175,10 +175,15 @@ const ShareDialog = props => { [onUpdateSharedResource, sharedResource] ); + const onCloseWrapper = useCallback(() => { + setShowUpdateSuccess(false); + handleClose(); + }, [handleClose]); + return ( { @@ -273,7 +278,7 @@ const ShareDialog = props => { ) : (
)} -