FYP: batch resolve results
This commit is contained in:
parent
fc3e3ae844
commit
e9559efe10
1 changed files with 3 additions and 4 deletions
|
@ -256,12 +256,11 @@ export const doFetchPersonalRecommendations = () => (dispatch: Dispatch, getStat
|
|||
.then((data) => {
|
||||
const { gid, recs } = data;
|
||||
if (gid && recs) {
|
||||
const uris = processLighthouseResults(recs);
|
||||
dispatch(doResolveUris(uris));
|
||||
dispatch({
|
||||
type: ACTIONS.FYP_FETCH_SUCCESS,
|
||||
data: {
|
||||
gid,
|
||||
uris: processLighthouseResults(recs),
|
||||
},
|
||||
data: { gid, uris },
|
||||
});
|
||||
} else {
|
||||
dispatch({ type: ACTIONS.FYP_FETCH_FAILED });
|
||||
|
|
Loading…
Reference in a new issue