mirror of
https://github.com/reactos/developer-web-interface.git
synced 2025-05-14 10:35:56 +00:00
changing flatMap() to flat().map()
This commit is contained in:
parent
7e13e3cc9b
commit
7f1457076c
@ -18,7 +18,8 @@ function getBuildReqQString(commits, buildData) {
|
||||
.map(commit =>
|
||||
buildData.filter(bd => bd.sourcestamps[0].revision === commit.sha)
|
||||
)
|
||||
.flatMap(bd => 'buildsetid__contains=' + bd.bsid)
|
||||
.flat()
|
||||
.map(bd => 'buildsetid__contains=' + bd.bsid)
|
||||
.join('&');
|
||||
}
|
||||
|
||||
@ -45,6 +46,8 @@ function* handleBuildsLoad() {
|
||||
fetchBuildReq,
|
||||
getBuildReqQString(commits, buildSetsRaw)
|
||||
);
|
||||
|
||||
console.log(buildReqsRaw);
|
||||
const buildsRaw = yield call(fetchBuilds, getBuildQString(buildReqsRaw));
|
||||
|
||||
const buildsBySha = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user