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): assignee filter not working when group by active (#3336)

dev-rba1d201be755a
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 8d83c24d5f..c14782dd73 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
@@ -425,6 +425,7 @@ export const SoupViewContextProvider: FlowComponent<
const field = groupByField();
const groups = itemsQuery.data?.groups;
const items = itemsQuery.data?.items;
+ const dataVersion = itemsQuery.dataUpdatedAt;
if (!field || !groups || !items) {
return [];
@@ -438,12 +439,15 @@ export const SoupViewContextProvider: FlowComponent<
return {
key: group.key,
- queryKey: soupKeys.groupedGroup({
- params: soupParams(),
- body: soupBody(),
- groupBy: field,
- groupKey: group.key,
- }).queryKey as readonly unknown[],
+ queryKey: [
+ ...soupKeys.groupedGroup({
+ params: soupParams(),
+ body: soupBody(),
+ groupBy: field,
+ groupKey: group.key,
+ }).queryKey,
+ dataVersion,
+ ] as readonly unknown[],
queryFn: async (ctx: { pageParam: string | null }) => {
const response = await throwOnErr(async () =>
storageServiceClient.getGroupedSoupAstItems({