From 9b498d10d51237ff30b6ce3577e8ea38fc0c7aef Mon Sep 17 00:00:00 2001 From: jialin Date: Tue, 10 Feb 2026 11:27:38 +0800 Subject: [PATCH] fix: dashboard model data format --- src/pages/dashboard/components/active-table.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/dashboard/components/active-table.tsx b/src/pages/dashboard/components/active-table.tsx index 2eaa8c6c..edd45385 100644 --- a/src/pages/dashboard/components/active-table.tsx +++ b/src/pages/dashboard/components/active-table.tsx @@ -55,7 +55,13 @@ const ActiveTable = () => { { title: intl.formatMessage({ id: 'models.form.replicas' }), dataIndex: 'instance_count', - key: 'instance_count' + key: 'instance_count', + render(text: any, record: any) { + if (record.provider_name) { + return N/A; + } + return text; + } }, { title: intl.formatMessage({ id: 'dashboard.tokens' }), @@ -64,9 +70,7 @@ const ActiveTable = () => { ellipsis: true, render: (text: any, record: any) => { let val = text; - if (record.provider_name) { - return N/A; - } + if (!text) { val = !NACategories.includes(record.categories?.[0]) ? 'N/A' : 0; }