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; }