Skip to content

Commit

Permalink
fix(semantic hub): remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw committed Jul 12, 2024
1 parent 40c930e commit 4e93f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/basic/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const Table = ({
const renderErrorMessage = () => {
if (error == null) {
return <Typography variant="body2">{noRowsMsg ?? 'No rows'}</Typography>
} else if (error != null) {
} else {
if (error.status >= 400 && error.status < 500) {
return <Error400Overlay errorMessage4xx={error.message} />
} else {
Expand Down

0 comments on commit 4e93f0d

Please sign in to comment.