Skip to content

Commit

Permalink
Fix: don't show deleted in progress item
Browse files Browse the repository at this point in the history
Signed-off-by: Daishan Peng <[email protected]>
  • Loading branch information
StrongMonkey committed Oct 31, 2024
1 parent e85650d commit c3c3e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/admin/app/components/knowledge/AgentKnowledgePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function AgentKnowledgePanel({ agentId }: { agentId: string }) {
...item,
}) as KnowledgeFile
)
.filter((item) => !item.deleted)
),
{
revalidateOnFocus: false,
Expand Down
1 change: 1 addition & 0 deletions ui/admin/app/lib/model/knowledge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ type FolderSet = {
export type KnowledgeFile = {
id: string;
created: string;
deleted: string;
fileName: string;
state: KnowledgeFileState;
agentID: string;
Expand Down

0 comments on commit c3c3e53

Please sign in to comment.