Skip to content

Commit 33d6bcf

Browse files
committed
Update filebrowser.js
1 parent e2b12a7 commit 33d6bcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

filebrowser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async function renderSidebarHTML() {
127127

128128
// if repo obj dosen't exist
129129
if (!repoObj || !repoObj.defaultBranch
130-
|| !repoObj.repoDataExpiration || !repoObj.branchExpiration
130+
|| repoObj.repoDataExpiration === undefined || repoObj.branchExpiration === undefined
131131
|| repoObj.repoDataExpiration < currentTime) {
132132

133133
// get repo obj from git
@@ -1522,7 +1522,7 @@ async function renderBranchMenuHTML(renderAll) {
15221522

15231523
// if repo obj exists
15241524
if (repoObj && repoObj.branches &&
1525-
repoObj.branchExpiration &&
1525+
repoObj.branchExpiration !== undefined &&
15261526
repoObj.branchExpiration >= currentTime) {
15271527

15281528
// get repository branches
@@ -1543,7 +1543,7 @@ async function renderBranchMenuHTML(renderAll) {
15431543
// if branch resp isn't already stored
15441544
// in local storage
15451545
if (!repoObj || !repoObj.branches ||
1546-
!repoObj.branchExpiration ||
1546+
repoObj.branchExpiration === undefined ||
15471547
repoObj.branchExpiration < currentTime) {
15481548

15491549
// get branches for repository

0 commit comments

Comments
 (0)