Skip to content

Commit 5490396

Browse files
committed
Update filebrowser.js
1 parent 12bfd1c commit 5490396

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

filebrowser.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,6 +1945,18 @@ sidebarTitle.addEventListener('click', (e) => {
19451945

19461946
sidebar.classList.add('learn');
19471947

1948+
1949+
// if adding a repository
1950+
1951+
const focusedRepo = fileWrapper.querySelector('.repo.focused');
1952+
1953+
if (focusedRepo) {
1954+
1955+
// remove it
1956+
focusedRepo.remove();
1957+
1958+
}
1959+
19481960
/*
19491961
// if there are no modified files
19501962
// and no pending promises

0 commit comments

Comments
 (0)