From f103da41785577d87149fd865eddf7366607b6da Mon Sep 17 00:00:00 2001 From: jialin Date: Wed, 10 Jul 2024 10:07:11 +0800 Subject: [PATCH] fix: view logs button --- src/pages/llmodels/components/instance-item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/llmodels/components/instance-item.tsx b/src/pages/llmodels/components/instance-item.tsx index f3c0429e..62df2e6b 100644 --- a/src/pages/llmodels/components/instance-item.tsx +++ b/src/pages/llmodels/components/instance-item.tsx @@ -47,7 +47,7 @@ const InstanceItem: React.FC = ({ const setChildActionList = (item: ModelInstanceListItem) => { return _.filter(childActionList, (action: any) => { if (action.key === 'viewlog') { - return InstanceStatusMap.Running.includes(item.state); + return action.status.includes(item.state); } return true; });