From b616dacdeef20c293b7b98cd2e81ef699f891a95 Mon Sep 17 00:00:00 2001 From: saimedhi Date: Tue, 5 Nov 2024 09:48:31 -0800 Subject: [PATCH] Fixing error message Signed-off-by: saimedhi --- .../pages/workflows/workflow_list/resource_list.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/public/pages/workflows/workflow_list/resource_list.tsx b/public/pages/workflows/workflow_list/resource_list.tsx index 4a4fcae4..3848033d 100644 --- a/public/pages/workflows/workflow_list/resource_list.tsx +++ b/public/pages/workflows/workflow_list/resource_list.tsx @@ -70,7 +70,7 @@ export function ResourceList(props: ResourceListProps) { - {!isEmpty(data) && !loading ? ( + {!data.startsWith('error:') && !loading ? ( Error loading resource details} - body={ -

- You do not have permissions to access details of this - resource. -

- } + body={

{data.replace(/^error:\s*/, '')}

} /> )}
@@ -122,7 +117,7 @@ export function ResourceList(props: ResourceListProps) { } catch (error) { setItemIdToExpandedRowMap((prevMap) => ({ ...prevMap, - [item.id]: renderExpandedRow(''), + [item.id]: renderExpandedRow('error:' + error), })); } }