Skip to content

Commit 34a3a99

Browse files
committed
Co-authored-by: Jimmy Phy <[email protected]>
Co-authored-by: kelvinmirhan <[email protected]> Co-authored-by: Christopher Stamper <[email protected]>
2 parents 3ac7c20 + f70a910 commit 34a3a99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/RTKslices.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ export const mainSlice = createSlice({
5757
tabs[currentTab].hierarchy.children = [];
5858
tabs[currentTab].snapshots = [lastSnapshot];
5959

60-
tabs[currentTab].currLocation = tabs[currentTab].hiearchy;
61-
console.log('tabs[currentTab] is ', current(tabs[currentTab]));
60+
//there is a typo here
61+
tabs[currentTab].currLocation = tabs[currentTab].hierarchy;
62+
console.log('tabsHieracyh', tabs[currentTab].hierarchy);
6263
tabs[currentTab].index = 1;
6364
tabs[currentTab].currParent = 0;
6465
tabs[currentTab].currBranch = 1;
@@ -474,6 +475,7 @@ export const mainSlice = createSlice({
474475
tabs[currentTab] = { ...tabs[currentTab], seriesSavedStatus: 'saved' };
475476
}
476477
},
478+
477479
toggleExpanded: (state, action) => {
478480
const { tabs, currentTab } = state;
479481
// find correct node from currLocation and toggle isExpanded

0 commit comments

Comments
 (0)