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({
5757 tabs [ currentTab ] . hierarchy . children = [ ] ;
5858 tabs [ currentTab ] . snapshots = [ lastSnapshot ] ;
5959
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 ) ;
6163 tabs [ currentTab ] . index = 1 ;
6264 tabs [ currentTab ] . currParent = 0 ;
6365 tabs [ currentTab ] . currBranch = 1 ;
@@ -471,7 +473,9 @@ export const mainSlice = createSlice({
471473 seriesArray . push ( newSeries ) ;
472474 localStorage . setItem ( 'project' , JSON . stringify ( seriesArray ) ) ;
473475 tabs [ currentTab ] = { ...tabs [ currentTab ] , seriesSavedStatus : 'saved' } ;
474- } ,
476+ }
477+ } ,
478+
475479 toggleExpanded : ( state , action ) => {
476480 const { tabs, currentTab } = state ;
477481 // find correct node from currLocation and toggle isExpanded
You can’t perform that action at this time.
0 commit comments