We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bf625c commit 441c3a4Copy full SHA for 441c3a4
live-view/live-view.js
@@ -12,8 +12,9 @@ async function setupLiveView() {
12
// get repo obj from local storage
13
const repoObj = modifiedRepos[treeLoc[0] + '/' + treeLoc[1].split(':')[0]];
14
15
- // if repo obj exists
16
- if (repoObj && repoObj.selBranch !== selBranch) {
+ // if repo obj and selected branch exist
+ if (repoObj && selBranch &&
17
+ repoObj.selBranch !== selBranch) {
18
19
// update selected branch in local storage
20
updateModRepoSelectedBranch((treeLoc[0] + '/' + treeLoc[1].split(':')[0]), selBranch);
0 commit comments