diff --git a/web/admin/pages/index.vue b/web/admin/pages/index.vue index 0744dc56..08144f1f 100644 --- a/web/admin/pages/index.vue +++ b/web/admin/pages/index.vue @@ -15,6 +15,16 @@ const currentQueue = ref("All"); const error = ref(); +const actorProfilesMap = computed(() => { + const map = new Map(); + + for (const profile of actorProfiles.value) { + map.set(profile.did, profile); + } + + return map; +}); + const queues = computed(() => ({ All: actors.value, "Probably furry": actors.value.filter((actor) => { @@ -59,7 +69,7 @@ const nextActor = async () => { await nextActor(); function didToProfile(did: string): ProfileViewDetailed | undefined { - return actorProfiles.value.find((p) => p.did === did); + return actorProfilesMap.value.get(did); } function selectRandomActor() {