experimenting

This commit is contained in:
Tony Grosinger 2024-02-21 19:45:05 -08:00
parent 014831121b
commit 106125a980

View File

@ -56,10 +56,15 @@ export default {
if (!allUsers) {
return [];
}
const toLoad = [];
if (settings.hide_current_user && this.currentUser) {
allUsers = allUsers.filter((u) => u.id !== this.currentUser.id);
}
console.log(allUsers);
const userCardInfos = allUsers.map((u) => {
if (this.cachedUserCardInfo[u.id]) {
return this.cachedUserCardInfo[u.id];
@ -85,8 +90,6 @@ export default {
data: { user_ids: thisBatch.map((uc) => uc.user.id).join(",") },
});
thisBatch.forEach((uc) => {
console.log(uc.user.user_fields);
// 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
@ -106,11 +109,7 @@ export default {
});
}
console.log(userCardInfos);
// console.log(userCardInfos[0].user.user_fields);
return userCardInfos.filter(c => c.user.user_fields["3"] === "true");
// return userCardInfos;
},
@action