File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ chrome.runtime.onConnect.addListener(port => {
109
109
// reassigning pointer to the appropriate node to branch off of
110
110
tabsObj [ tabId ] . currLocation = tabsObj [ tabId ] . hierarchy ;
111
111
// reset index
112
- tabsObj [ tabId ] . index = 0 ;
112
+ tabsObj [ tabId ] . index = 1 ;
113
113
return ;
114
114
case 'setLock' :
115
115
tabsObj [ tabId ] . mode . locked = payload ;
@@ -161,8 +161,7 @@ chrome.runtime.onMessage.addListener((request, sender) => {
161
161
if ( ! persist ) {
162
162
tabsObj [ tabId ] . snapshots . splice ( 1 ) ;
163
163
// reset children in root node to reset graph
164
- // if (tabsObj[tabId].hierarchy)
165
- tabsObj [ tabId ] . hierarchy . children = [ ] ;
164
+ if ( tabsObj [ tabId ] . hierarchy ) tabsObj [ tabId ] . hierarchy . children = [ ] ;
166
165
// reassigning pointer to the appropriate node to branch off of
167
166
tabsObj [ tabId ] . currLocation = tabsObj [ tabId ] . hierarchy ;
168
167
// reset index
You can’t perform that action at this time.
0 commit comments