Skip to content

Commit 2b08626

Browse files
fix(pci-instances): hide datagrid on query error
ref: #TAPC-5302 Signed-off-by: tsiorifamonjena <[email protected]>
1 parent 8f8945d commit 2b08626

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/manager/apps/pci-instances/src/pages/instances/datagrid/components/Datagrid.component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ const DatagridComponent = ({
269269
if (isError) addError(errorMessage, true);
270270
}, [isError, addError, t, errorMessage]);
271271

272+
if (isError) return null;
273+
272274
return (
273275
<div className="overflow-x-auto mt-8">
274276
<Datagrid

0 commit comments

Comments
 (0)