Skip to content

Commit a624767

Browse files
authored
Update filebrowser.js
1 parent 01472de commit a624767

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

filebrowser.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,13 @@ async function renderBranchMenuHTML(renderAll) {
11121112
// get branches for repository
11131113
branchResp = await git.getBranches(treeLoc);
11141114

1115+
// clean resp and save only relevant fields
1116+
const cleanedResp = branchResp.map(branch => {
1117+
return { name: branch.name, commit: { sha: branch.commit.sha } };
1118+
});
1119+
11151120
// save branch resp in local storage
1116-
updateModRepoBranches(fullName, branchResp);
1121+
updateModRepoBranches(fullName, cleanedResp);
11171122

11181123
}
11191124

0 commit comments

Comments
 (0)