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): empty state showing while switching views (#4043)

dev-rb6a19cbd7e0f4
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
index e31490ad78..aa4f913f04 100644
--- a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
@@ -1133,7 +1133,7 @@ export const SoupViewList = (props: SoupViewListProps) => {
</Show>
<StaticMarkdownContext>
<Switch>
- <Match when={source.isLoading() && !rows().length}>
+ <Match when={source.isFetching() && !rows().length}>
<LoadingBlock />
</Match>
<Match
@@ -1147,7 +1147,12 @@ export const SoupViewList = (props: SoupViewListProps) => {
Searching...
</div>
</Match>
- <Match when={!rows().length || forceEmptyState()}>
+ <Match
+ when={
+ (!source.isFetching() && !rows().length) ||
+ forceEmptyState()
+ }
+ >
<EmptyState
listView={currentView()}
search={!!searchText()}