diff --git a/ui/admin/app/components/knowledge/AgentKnowledgePanel.tsx b/ui/admin/app/components/knowledge/AgentKnowledgePanel.tsx index f93bb80a2..1a3951eda 100644 --- a/ui/admin/app/components/knowledge/AgentKnowledgePanel.tsx +++ b/ui/admin/app/components/knowledge/AgentKnowledgePanel.tsx @@ -47,6 +47,7 @@ export default function AgentKnowledgePanel({ agentId }: { agentId: string }) { ...item, }) as KnowledgeFile ) + .filter((item) => !item.deleted) ), { revalidateOnFocus: false, diff --git a/ui/admin/app/lib/model/knowledge.ts b/ui/admin/app/lib/model/knowledge.ts index 3f268b6b4..6bcfe98f9 100644 --- a/ui/admin/app/lib/model/knowledge.ts +++ b/ui/admin/app/lib/model/knowledge.ts @@ -113,6 +113,7 @@ type FolderSet = { export type KnowledgeFile = { id: string; created: string; + deleted: string; fileName: string; state: KnowledgeFileState; agentID: string;