Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(web): avoid flashing empty state when returning to agent list (#17118)

euvrecf95d9ac0d73
diff --git a/web/src/pages/agents/index.tsx b/web/src/pages/agents/index.tsx
index 49d153a130..9bc8b9454d 100644
--- a/web/src/pages/agents/index.tsx
+++ b/web/src/pages/agents/index.tsx
@@ -30,6 +30,7 @@ import { useRenameAgent } from './use-rename-agent';
export default function Agents() {
const {
data,
+ loading: listLoading,
pagination,
setPagination,
searchString,
@@ -170,6 +171,8 @@ export default function Agents() {
</div>
)}
</article>
+ ) : listLoading ? (
+ <article className="size-full" data-testid="agents-list"></article>
) : (
<article
className="size-full flex items-center justify-center"