experimenting

This commit is contained in:
Tony Grosinger 2024-02-21 17:58:05 -08:00
parent 3ccf6030e4
commit 1305d267e0

View File

@ -61,8 +61,7 @@ export default {
allUsers = allUsers.filter((u) => u.id !== this.currentUser.id);
}
const userCardInfos = allUsers.map((u) => {
console.log('got here 1')
console.log(u);
// console.log(u);
if (this.cachedUserCardInfo[u.id]) {
return this.cachedUserCardInfo[u.id];
@ -88,6 +87,8 @@ export default {
data: { user_ids: thisBatch.map((uc) => uc.user.id).join(",") },
});
thisBatch.forEach((uc) => {
console.log(uc);
// Each user card expects its own promise
// Rather than making a separate AJAX request for each
// We re-use the `user-cards.json` promise, and manipulate the data