Skip to content

Commit

Permalink
fix(codeQL-finding): remove unnecessary condition in semantic hub tab…
Browse files Browse the repository at this point in the history
…le (#979)
  • Loading branch information
lavanya-bmw authored Aug 8, 2024
1 parent 4d4ed40 commit 6c767a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

- Fixed incorrect usage of pre-commit hook
- Fix consistency issue in constants file. Use camel case for all page paths. Update corresponding usage in other files
- Remove unnecessary condition in semantic hub page's table

## 2.1.0

Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/SemanticHub/ModelTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const ModelTable = ({ onModelSelect }: ModelTableProps) => {
if (error) {
errorObj.status = Number(error)
errorObj.message =
error && Number(error) >= 400 && Number(error) < 500
Number(error) >= 400 && Number(error) < 500
? t('global.errors.dataLoadFailed')
: t('global.errors.loadFailed')
}
Expand Down

0 comments on commit 6c767a3

Please sign in to comment.