From cf4f646f70f3dbe9a50528e19aff5dc4ccd9765e Mon Sep 17 00:00:00 2001 From: lavanya-bmw Date: Fri, 12 Jul 2024 18:30:58 +0530 Subject: [PATCH] fix(semantic hub): review changes --- src/components/basic/Table/index.tsx | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/components/basic/Table/index.tsx b/src/components/basic/Table/index.tsx index 5b21423f..5a496074 100644 --- a/src/components/basic/Table/index.tsx +++ b/src/components/basic/Table/index.tsx @@ -179,20 +179,18 @@ export const Table = ({ const renderErrorMessage = () => { if (error == null) { return {noRowsMsg ?? 'No rows'} - } else { - if (error.status >= 400 && error.status < 500) { - return - } else { - return ( - { - reload?.() - }} - errorMessage5xx={error.message} - /> - ) - } } + if (error.status >= 400 && error.status < 500) { + return + } + return ( + { + reload?.() + }} + errorMessage5xx={error.message} + /> + ) } const NoRowsOverlay = () => {