mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
### What problem does this PR solve? Fix: Fixed the issue where dataset log avatars were displayed incorrectly #9869 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -50,7 +50,7 @@ export default function AgentTemplates() {
|
|||||||
[showCreatingModal],
|
[showCreatingModal],
|
||||||
);
|
);
|
||||||
|
|
||||||
const { navigateToAgent, navigateToDataflow } = useNavigatePage();
|
const { navigateToAgent } = useNavigatePage();
|
||||||
|
|
||||||
const handleOk = useCallback(
|
const handleOk = useCallback(
|
||||||
async (payload: any) => {
|
async (payload: any) => {
|
||||||
@ -67,7 +67,7 @@ export default function AgentTemplates() {
|
|||||||
if (ret?.code === 0) {
|
if (ret?.code === 0) {
|
||||||
hideCreatingModal();
|
hideCreatingModal();
|
||||||
if (canvasCategory === AgentCategory.DataflowCanvas) {
|
if (canvasCategory === AgentCategory.DataflowCanvas) {
|
||||||
navigateToDataflow(ret.data.id)();
|
navigateToAgent(ret.data.id, AgentCategory.DataflowCanvas)();
|
||||||
} else {
|
} else {
|
||||||
navigateToAgent(ret.data.id)();
|
navigateToAgent(ret.data.id)();
|
||||||
}
|
}
|
||||||
@ -76,7 +76,6 @@ export default function AgentTemplates() {
|
|||||||
[
|
[
|
||||||
hideCreatingModal,
|
hideCreatingModal,
|
||||||
navigateToAgent,
|
navigateToAgent,
|
||||||
navigateToDataflow,
|
|
||||||
setAgent,
|
setAgent,
|
||||||
template?.avatar,
|
template?.avatar,
|
||||||
template?.canvas_category,
|
template?.canvas_category,
|
||||||
|
|||||||
@ -102,18 +102,20 @@ export const getFileLogsTableColumns = (
|
|||||||
{
|
{
|
||||||
accessorKey: 'pipeline_title',
|
accessorKey: 'pipeline_title',
|
||||||
header: t('dataPipeline'),
|
header: t('dataPipeline'),
|
||||||
cell: ({ row }) => (
|
cell: ({ row }) => {
|
||||||
<div className="flex items-center gap-2 text-text-primary">
|
const title = row.original.pipeline_title;
|
||||||
<RAGFlowAvatar
|
const pipelineTitle = title === 'naive' ? 'general' : title;
|
||||||
avatar={row.original.avatar}
|
return (
|
||||||
name={row.original.pipeline_title}
|
<div className="flex items-center gap-2 text-text-primary">
|
||||||
className="size-4"
|
<RAGFlowAvatar
|
||||||
/>
|
avatar={row.original.avatar}
|
||||||
{row.original.pipeline_title === 'naive'
|
name={pipelineTitle}
|
||||||
? 'general'
|
className="size-4"
|
||||||
: row.original.pipeline_title}
|
/>
|
||||||
</div>
|
{pipelineTitle}
|
||||||
),
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'process_begin_at',
|
accessorKey: 'process_begin_at',
|
||||||
|
|||||||
Reference in New Issue
Block a user