Filter user cards based on user_field.3

This commit is contained in:
Tony Grosinger 2024-02-21 17:48:36 -08:00
parent 4d7491226a
commit 21879a6b81

View File

@ -60,7 +60,9 @@ export default {
if (settings.hide_current_user && this.currentUser) { if (settings.hide_current_user && this.currentUser) {
allUsers = allUsers.filter((u) => u.id !== this.currentUser.id); allUsers = allUsers.filter((u) => u.id !== this.currentUser.id);
} }
const userCardInfos = allUsers.map((u) => {
const filteredUsers = allUsers.filter(u => u.user.user_fields["3"] === "true");
const userCardInfos = filteredUsers.map((u) => {
if (this.cachedUserCardInfo[u.id]) { if (this.cachedUserCardInfo[u.id]) {
return this.cachedUserCardInfo[u.id]; return this.cachedUserCardInfo[u.id];
} }