@@ -32,7 +32,6 @@ import NetworkModificationTreeModel from './graph/network-modification-tree-mode
32
32
import { getFirstNodeOfType , isNodeBuilt , isNodeRenamed , isSameNode } from './graph/util/model-functions' ;
33
33
import { BUILD_STATUS } from './network/constants' ;
34
34
import { useAllComputingStatus } from './computing-status/use-all-computing-status' ;
35
- import { fetchCaseName } from '../services/study/index' ;
36
35
import { fetchNetworkModificationTree } from '../services/study/tree-subtree' ;
37
36
import { fetchNetworkExistence , fetchRootNetworkIndexationStatus } from '../services/study/network' ;
38
37
import { fetchStudy , recreateStudyNetwork , reindexAllRootNetwork } from 'services/study/study' ;
@@ -293,19 +292,8 @@ export function StudyContainer({ view, onChangeTab }) {
293
292
. then ( ( tree ) => {
294
293
const networkModificationTreeModel = new NetworkModificationTreeModel ( ) ;
295
294
networkModificationTreeModel . setTreeElements ( tree ) ;
295
+ dispatch ( loadNetworkModificationTreeSuccess ( networkModificationTreeModel ) ) ;
296
296
297
- fetchCaseName ( studyUuid , currentRootNetworkUuid )
298
- . then ( ( res ) => {
299
- if ( res ) {
300
- networkModificationTreeModel . setCaseName ( res ) ;
301
- dispatch ( loadNetworkModificationTreeSuccess ( networkModificationTreeModel ) ) ;
302
- }
303
- } )
304
- . catch ( ( err ) => {
305
- snackWarning ( {
306
- headerId : 'CaseNameLoadError' ,
307
- } ) ;
308
- } ) ;
309
297
// If a current node is already defined then override it cause it could have diferent status in different root networks
310
298
if ( currentNodeRef . current ) {
311
299
// Find the updated current node in the tree model
@@ -348,7 +336,7 @@ export function StudyContainer({ view, onChangeTab }) {
348
336
. finally ( ( ) => console . debug ( 'Network modification tree loading finished' ) ) ;
349
337
// Note: studyUuid and dispatch don't change
350
338
} ,
351
- [ studyUuid , currentRootNetworkUuid , dispatch , snackError , snackWarning ]
339
+ [ studyUuid , currentRootNetworkUuid , dispatch , snackError ]
352
340
) ;
353
341
354
342
const checkRootNetworkIndexation = useCallback ( ( ) => {
0 commit comments