Skip to content

Commit

Permalink
unrequire associated_products.versions on front end (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
seungpark authored Mar 2, 2023
1 parent f68802d commit 8de1da6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/context/version-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ const getBranches = async (metadata, repoBranches, associatedReposInfo, associat
const childRepoBranches = await fetchDocument(metadata.reposDatabase, BRANCHES_COLLECTION, {
project: product.name,
});
// filter all branches of associated repo by associated versions only
versions[product.name] = childRepoBranches.branches.filter((branch) => {
return branch.active && product.versions.includes(branch.gitBranchName);
});
// filter all branches of associated repo by active property
versions[product.name] = childRepoBranches.branches.filter((branch) => branch.active);
});
promises.push(
fetchDocument(metadata.reposDatabase, BRANCHES_COLLECTION, { project: metadata.project }).then((res) => {
Expand Down

0 comments on commit 8de1da6

Please sign in to comment.