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.

soup: update dss disable logic to fix no emails on email only filter (#505)

Caleb Taylorbedb7e1cbc55
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsx
index 24875fe1cb..3b72441eec 100644
--- a/js/app/packages/app/component/UnifiedListView.tsx
+++ b/js/app/packages/app/component/UnifiedListView.tsx
@@ -876,9 +876,13 @@ export function UnifiedListView(props: UnifiedListViewProps) {
const disableDssInfiniteQuery = createMemo(() => {
const typeFilter = entityTypeFilter();
if (typeFilter.length === 0) return false;
- const dssTypes = ['document', 'chat', 'project'];
- const hasDssTypes = typeFilter.some((t) => dssTypes.includes(t));
- return !hasDssTypes;
+
+ function onlyHas<T>(arr: readonly T[], value: T): boolean {
+ return arr.length === 1 && arr[0] === value;
+ }
+
+ if (onlyHas(typeFilter, 'channel')) return true;
+ return false;
});
const disableChannelsQuery = createMemo(() => {