Skip to content

Commit 35ed682

Browse files
authored
Update repos.js
1 parent 90700b3 commit 35ed682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async function fetchRepoAndSaveToModRepos(treeLoc) {
120120

121121
(tempRepo.selBranch ?? repo.default_branch),
122122

123-
(tempRepo.pushAccess ?? (repo.permissions.push ?? false)),
123+
(tempRepo.pushAccess ?? ((repo.permissions && repo.permissions.push) ?? false)),
124124

125125
(tempRepo.branches ?? null),
126126

0 commit comments

Comments
 (0)