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 => {
109109 // reassigning pointer to the appropriate node to branch off of
110110 tabsObj [ tabId ] . currLocation = tabsObj [ tabId ] . hierarchy ;
111111 // reset index
112- tabsObj [ tabId ] . index = 0 ;
112+ tabsObj [ tabId ] . index = 1 ;
113113 return ;
114114 case 'setLock' :
115115 tabsObj [ tabId ] . mode . locked = payload ;
@@ -161,8 +161,7 @@ chrome.runtime.onMessage.addListener((request, sender) => {
161161 if ( ! persist ) {
162162 tabsObj [ tabId ] . snapshots . splice ( 1 ) ;
163163 // 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 = [ ] ;
166165 // reassigning pointer to the appropriate node to branch off of
167166 tabsObj [ tabId ] . currLocation = tabsObj [ tabId ] . hierarchy ;
168167 // reset index
You can’t perform that action at this time.
0 commit comments