File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { useDispatch, useSelector } from 'react-redux';
10
10
import { AppState } from 'redux/reducer' ;
11
11
import { NotificationsUrlKeys , useNotificationsListener , useSnackMessage } from '@gridsuite/commons-ui' ;
12
12
import { fetchRootNetworks } from 'services/root-network' ;
13
- import { setCurrentRootNetworkUuid , setRootNetworks } from 'redux/actions' ;
13
+ import { setCurrentRootNetworkUuid , setMonoRootStudy , setRootNetworks } from 'redux/actions' ;
14
14
import { RootNetworkMetadata } from '../network-modifications/network-modification-menu.type' ;
15
15
import {
16
16
isRootNetworkDeletionStartedNotification ,
@@ -40,6 +40,9 @@ export const useRootNetworkNotifications = ({ setIsRootNetworksProcessing }: Use
40
40
if ( res . every ( ( network ) => ! network . isCreating ) ) {
41
41
setIsRootNetworksProcessing ( false ) ;
42
42
}
43
+ if ( res . length > 1 ) {
44
+ dispatch ( setMonoRootStudy ( false ) ) ;
45
+ }
43
46
} )
44
47
. catch ( ( error ) => {
45
48
snackError ( { messageTxt : error . message } ) ;
You can’t perform that action at this time.
0 commit comments