File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ export const mainSlice = createSlice({
57
57
tabs [ currentTab ] . hierarchy . children = [ ] ;
58
58
tabs [ currentTab ] . snapshots = [ lastSnapshot ] ;
59
59
60
- tabs [ currentTab ] . currLocation = tabs [ currentTab ] . hiearchy ;
60
+ //there is a typo here
61
+ tabs [ currentTab ] . currLocation = tabs [ currentTab ] . hierarchy ;
62
+ console . log ( 'tabsHieracyh' , tabs [ currentTab ] . hierarchy ) ;
61
63
tabs [ currentTab ] . index = 1 ;
62
64
tabs [ currentTab ] . currParent = 0 ;
63
65
tabs [ currentTab ] . currBranch = 1 ;
@@ -471,7 +473,9 @@ export const mainSlice = createSlice({
471
473
seriesArray . push ( newSeries ) ;
472
474
localStorage . setItem ( 'project' , JSON . stringify ( seriesArray ) ) ;
473
475
tabs [ currentTab ] = { ...tabs [ currentTab ] , seriesSavedStatus : 'saved' } ;
474
- } ,
476
+ }
477
+ } ,
478
+
475
479
toggleExpanded : ( state , action ) => {
476
480
const { tabs, currentTab } = state ;
477
481
// find correct node from currLocation and toggle isExpanded
You can’t perform that action at this time.
0 commit comments