File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,17 @@ async function renderSidebarHTML() {
202202
203203 alert ( 'Hmm... we can\'t find that repo.\nIf it\'s private, try double checking you\'re on the account with access.' ) ;
204204
205+
206+ // get repo obj from local storage
207+ const repoObj = modifiedRepos [ user + '/' + repoName ] ;
208+
209+ if ( repoObj ) {
210+
211+ // delete repo obj from modified repos
212+ deleteModRepo ( user + '/' + repoName ) ;
213+
214+ }
215+
205216 // change location
206217 treeLoc [ 1 ] = '' ;
207218 treeLoc [ 2 ] = '' ;
@@ -1551,6 +1562,9 @@ sidebarTitle.addEventListener('click', (e) => {
15511562 } else { // show learn page
15521563
15531564 sidebar . classList . add ( 'learn' ) ;
1565+
1566+ if ( Object . values ( modifiedFiles ) . length === 0
1567+ && @@)
15541568
15551569 }
15561570
You can’t perform that action at this time.
0 commit comments