From c8c04f1032d2b8cf0111c2d588d3f8dd38a215a0 Mon Sep 17 00:00:00 2001 From: Vadim Ogievetsky Date: Thu, 18 Jan 2024 13:21:32 -0800 Subject: [PATCH] fix worker disable rendering (#15712) --- web-console/src/views/services-view/services-view.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-console/src/views/services-view/services-view.tsx b/web-console/src/views/services-view/services-view.tsx index 96924b80ce7..fd9c4caef24 100644 --- a/web-console/src/views/services-view/services-view.tsx +++ b/web-console/src/views/services-view/services-view.tsx @@ -554,12 +554,13 @@ ORDER BY switch (row.service_type) { case 'middle_manager': case 'indexer': { - if (deepGet(row, 'worker.version') === '') return 'Disabled'; const { workerInfo } = row; if (!workerInfo) { return 'Could not get detail info'; } + if (workerInfo.worker.version === '') return 'Disabled'; + const details: string[] = []; if (workerInfo.lastCompletedTaskTime) { details.push(`Last completed task: ${workerInfo.lastCompletedTaskTime}`);