Skip to content

Commit

Permalink
fix updateBuilds to persist builds outside the top 50 (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Wilson authored Feb 1, 2022
1 parent 4cef299 commit 5fedc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/swr/builds.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const updateBuilds = async (slug, repo, newBuild = null) => {
if (!builds?.length) {
return [[build]];
}
const unwrappedBuilds = [...builds[0]];
const unwrappedBuilds = builds.flat();
/* otherwise check if the first page includes
/ this particular build
*/
Expand Down

0 comments on commit 5fedc51

Please sign in to comment.