Fix: Optimize metadata filters, add Ingestion pipeline options to agent templates page #9869 (#10572)

### What problem does this PR solve?

Fix: Optimize metadata filters, add Ingestion pipeline options to agent
templates page

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-10-15 12:31:05 +08:00
committed by GitHub
parent 8b512cdadf
commit 769d701f56
8 changed files with 44 additions and 21 deletions

View File

@ -91,9 +91,9 @@ export default function AgentTemplates() {
return templateList;
}
return templateList.filter(
(item, index) =>
(item) =>
item.canvas_type?.toLocaleLowerCase() ===
selectMenuItem?.toLocaleLowerCase() || index === 0,
selectMenuItem?.toLocaleLowerCase(),
);
}, [selectMenuItem, templateList]);