Skip to content

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

Fix: Fixed the issue where dataset log avatars were displayed incorrectly #9869 (#10764)

balibabu51fb08be98c9
diff --git a/web/src/pages/agents/agent-templates.tsx b/web/src/pages/agents/agent-templates.tsx
index 75c7fe3889..4f287c5c05 100644
--- a/web/src/pages/agents/agent-templates.tsx
+++ b/web/src/pages/agents/agent-templates.tsx
@@ -50,7 +50,7 @@ export default function AgentTemplates() {
[showCreatingModal],
);
- const { navigateToAgent, navigateToDataflow } = useNavigatePage();
+ const { navigateToAgent } = useNavigatePage();
const handleOk = useCallback(
async (payload: any) => {
@@ -67,7 +67,7 @@ export default function AgentTemplates() {
if (ret?.code === 0) {
hideCreatingModal();
if (canvasCategory === AgentCategory.DataflowCanvas) {
- navigateToDataflow(ret.data.id)();
+ navigateToAgent(ret.data.id, AgentCategory.DataflowCanvas)();
} else {
navigateToAgent(ret.data.id)();
}
@@ -76,7 +76,6 @@ export default function AgentTemplates() {
[
hideCreatingModal,
navigateToAgent,
- navigateToDataflow,
setAgent,
template?.avatar,
template?.canvas_category,
diff --git a/web/src/pages/dataset/dataset-overview/overview-table.tsx b/web/src/pages/dataset/dataset-overview/overview-table.tsx
index e56d5d1791..de8346bcb7 100644
--- a/web/src/pages/dataset/dataset-overview/overview-table.tsx
+++ b/web/src/pages/dataset/dataset-overview/overview-table.tsx
@@ -102,18 +102,20 @@ export const getFileLogsTableColumns = (
{
accessorKey: 'pipeline_title',
header: t('dataPipeline'),
- cell: ({ row }) => (
- <div className="flex items-center gap-2 text-text-primary">
- <RAGFlowAvatar
- avatar={row.original.avatar}
- name={row.original.pipeline_title}
- className="size-4"
- />
- {row.original.pipeline_title === 'naive'
- ? 'general'
- : row.original.pipeline_title}
- </div>
- ),
+ cell: ({ row }) => {
+ const title = row.original.pipeline_title;
+ const pipelineTitle = title === 'naive' ? 'general' : title;
+ return (
+ <div className="flex items-center gap-2 text-text-primary">
+ <RAGFlowAvatar
+ avatar={row.original.avatar}
+ name={pipelineTitle}
+ className="size-4"
+ />
+ {pipelineTitle}
+ </div>
+ );
+ },
},
{
accessorKey: 'process_begin_at',