Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions web/src/pages/agents/agent-templates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function AgentTemplates() {
[showCreatingModal],
);

const { navigateToAgent, navigateToDataflow } = useNavigatePage();
const { navigateToAgent } = useNavigatePage();

const handleOk = useCallback(
async (payload: any) => {
Expand All @@ -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)();
}
Expand All @@ -76,7 +76,6 @@ export default function AgentTemplates() {
[
hideCreatingModal,
navigateToAgent,
navigateToDataflow,
setAgent,
template?.avatar,
template?.canvas_category,
Expand Down
26 changes: 14 additions & 12 deletions web/src/pages/dataset/dataset-overview/overview-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading