Skip to content

Commit 3699514

Browse files
committed
Update live-view.js
1 parent 568fd55 commit 3699514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

live-view/live-view.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ async function setupLiveView() {
77

88
// update repo obj selected branch
99

10-
const selBranch = linkData.dir[1].split(':')[1];
10+
let selBranch = linkData.dir[1].split(':')[1];
1111

1212
// get repo obj from local storage
1313
const repoObj = modifiedRepos[linkData.dir[0] + '/' + linkData.dir[1].split(':')[0]];
@@ -37,6 +37,7 @@ async function setupLiveView() {
3737
treeLoc[1] = linkData.dir[1].split(':')[0] + ':' + defaultBranch;
3838
saveTreeLocLS(treeLoc);
3939

40+
// set selected branch to default branch
4041
selBranch = defaultBranch;
4142

4243
}

0 commit comments

Comments
 (0)