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): groups initialized with placeholder data causes incorrect items to show (#4079)

dev-rbfb507763230f
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 a0efa53e1f..6b206e30cf 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
@@ -483,6 +483,8 @@ export const SoupViewContextProvider: FlowComponent<
const groupQueries = createGroupedSoupQueries({
initialPage: createMemo(() => {
+ if (itemsQuery.isPlaceholderData) return;
+
const groups = itemsQuery.data?.groups;
const items = itemsQuery.data?.itemsById;
if (!groups || !items) return;