Skip to content

Commit 5dcd665

Browse files
committed
clear button on left side works
1 parent f8b8177 commit 5dcd665

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/app/RTKslices.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)