diff --git a/ui/src/components/BaseAgentProfileList.vue b/ui/src/components/BaseAgentProfileList.vue
index ef417bcd..f2bd40b4 100644
--- a/ui/src/components/BaseAgentProfileList.vue
+++ b/ui/src/components/BaseAgentProfileList.vue
@@ -14,7 +14,6 @@
v-else
v-slot="{ item }"
v-bind="$attrs"
- class="my-8"
:items="agentProfiles"
:is-loading="loading"
>
diff --git a/ui/src/components/CreatorsListDialog.vue b/ui/src/components/CreatorsListDialog.vue
index 8324735e..439902f7 100644
--- a/ui/src/components/CreatorsListDialog.vue
+++ b/ui/src/components/CreatorsListDialog.vue
@@ -17,13 +17,14 @@
"
@load-next="fetchNextPageInfiniteScroll"
>
-
+
+
+
+
{
- const agents: AgentPubKey[] = await await client.callZome({
+ const agents: AgentPubKey[] = await client.callZome({
role_name: "mewsfeed",
zome_name: "follows",
fn_name: "get_creators_for_follower",
@@ -104,7 +105,7 @@ const { data, error, fetchNextPage, hasNextPage, isInitialLoading } =
if (lastPage.length === 0) return;
if (lastPage.length < pageLimit) return;
- return { after_agentpubkey: lastPage[lastPage.length - 1] };
+ return { after_agentpubkey: lastPage[lastPage.length - 1].agentPubKey };
},
refetchInterval: 1000 * 60 * 2, // 2 minutes
refetchOnMount: true,
diff --git a/ui/src/components/FollowersListDialog.vue b/ui/src/components/FollowersListDialog.vue
index e42e38ea..b6ff5593 100644
--- a/ui/src/components/FollowersListDialog.vue
+++ b/ui/src/components/FollowersListDialog.vue
@@ -17,13 +17,14 @@
"
@load-next="fetchNextPageInfiniteScroll"
>
-
+
+
+
+
{
- const agents: AgentPubKey[] = await await client.callZome({
+const fetchFollowers = async (params: any) => {
+ const agents: AgentPubKey[] = await client.callZome({
role_name: "mewsfeed",
zome_name: "follows",
fn_name: "get_followers_for_creator",
@@ -99,12 +100,12 @@ const { data, error, fetchNextPage, hasNextPage, isInitialLoading } =
"get_followers_for_creator",
encodeHashToBase64(props.agentPubKey),
],
- queryFn: fetchCreators,
+ queryFn: fetchFollowers,
getNextPageParam: (lastPage) => {
if (lastPage.length === 0) return;
if (lastPage.length < pageLimit) return;
- return { after_agentpubkey: lastPage[lastPage.length - 1] };
+ return { after_agentpubkey: lastPage[lastPage.length - 1].agentPubKey };
},
refetchInterval: 1000 * 60 * 2, // 2 minutes
refetchOnMount: true,