experimenting
This commit is contained in:
parent
1305d267e0
commit
4310bca0ef
@ -87,7 +87,7 @@ export default {
|
|||||||
data: { user_ids: thisBatch.map((uc) => uc.user.id).join(",") },
|
data: { user_ids: thisBatch.map((uc) => uc.user.id).join(",") },
|
||||||
});
|
});
|
||||||
thisBatch.forEach((uc) => {
|
thisBatch.forEach((uc) => {
|
||||||
console.log(uc);
|
// console.log(uc);
|
||||||
|
|
||||||
// Each user card expects its own promise
|
// Each user card expects its own promise
|
||||||
// Rather than making a separate AJAX request for each
|
// Rather than making a separate AJAX request for each
|
||||||
@ -99,9 +99,11 @@ export default {
|
|||||||
user: data.users.find((u) => u.id === uc.user.id),
|
user: data.users.find((u) => u.id === uc.user.id),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return uc.user
|
let x = uc.user
|
||||||
.findDetails({ existingRequest: convertedPromise })
|
.findDetails({ existingRequest: convertedPromise })
|
||||||
.finally(() => uc.set("loading", false));
|
.finally(() => uc.set("loading", false));
|
||||||
|
console.log(x);
|
||||||
|
return x;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user