Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(soup): not all groups displayed (#3389)

dev-rb030015e58266
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx
index fe8df91aa5..a1edb97de1 100644
--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx
@@ -135,7 +135,11 @@ export const SoupViewContextProvider: FlowComponent<
: 'created_at';
return {
- limit: 100,
+ // When doing a group by query, the limit will end up cutting off groups.
+ // So, instead we increase the fetch limit for the group by query to make
+ // sure we get as many groups as we can. Alternative would be to implement
+ // paginated loading of groups, but we dont have that right now.
+ limit: soup.grouping.activeGroupId() ? 2_000 : 100,
sort_method: sortMethod,
};
});