Skip to content

Commit 025a5e6

Browse files
committed
Update live-view.js
1 parent dc6308d commit 025a5e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

live-view/live-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ async function handleLiveViewRequest(requestPath) {
815815
let respObj;
816816

817817
// get repo obj from local storage
818-
const repoObj = modifiedRepos[fileUser + '/' + fileRepo.split(':')[0]];
818+
const repoObj = modifiedRepos[fileUser + '/' + fileRepo.split(':')[]];
819819

820820

821821
// if not logged in
@@ -824,7 +824,7 @@ async function handleLiveViewRequest(requestPath) {
824824
|| (repoObj && !repoObj.private)) {
825825

826826
// if branch doesn't exist in tree
827-
if (!fileRepo.includes(':')) {
827+
if (!treeLoc[1].includes(':')) {
828828

829829
let defaultBranch;
830830

0 commit comments

Comments
 (0)