Skip to content

Commit 441c3a4

Browse files
committed
Update live-view.js
1 parent 2bf625c commit 441c3a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

live-view/live-view.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ async function setupLiveView() {
1212
// get repo obj from local storage
1313
const repoObj = modifiedRepos[treeLoc[0] + '/' + treeLoc[1].split(':')[0]];
1414

15-
// if repo obj exists
16-
if (repoObj && repoObj.selBranch !== selBranch) {
15+
// if repo obj and selected branch exist
16+
if (repoObj && selBranch &&
17+
repoObj.selBranch !== selBranch) {
1718

1819
// update selected branch in local storage
1920
updateModRepoSelectedBranch((treeLoc[0] + '/' + treeLoc[1].split(':')[0]), selBranch);

0 commit comments

Comments
 (0)