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(ai): suspsense trigger (#688)

Eric Hayesef9ac1d0b6d0
diff --git a/js/app/packages/core/component/AI/signal/tabAttachments.ts b/js/app/packages/core/component/AI/signal/tabAttachments.ts
index d7c707587b..a77f7b3de2 100644
--- a/js/app/packages/core/component/AI/signal/tabAttachments.ts
+++ b/js/app/packages/core/component/AI/signal/tabAttachments.ts
@@ -254,8 +254,7 @@ export function useTabAttachments(): Accessor<ChatAttachmentWithName[]> {
const combinedAttachments = createMemo(() => {
const tabs = tabAttachments();
const existingAttachments = new Set(tabs.map((a) => a.attachmentId));
- const queriedEmails =
- emailQuery.isLoading || emailQuery.isError ? [] : (emailQuery.data ?? []);
+ const queriedEmails = emailQuery.isSuccess ? (emailQuery.data ?? []) : [];
const newEmails = queriedEmails.filter(
(e) => !existingAttachments.has(e.attachmentId)
);