Skip to content

Commit

Permalink
Fix default_view of a new added sw component where the value is null.…
Browse files Browse the repository at this point in the history
… The provious implementaion checked a not existing api endpoint fetching data

Signed-off-by: Luigi Pellecchia <[email protected]>
  • Loading branch information
Luigi Pellecchia committed Apr 8, 2024
1 parent 000ffff commit cb94ddd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/app/Mapping/Mapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Mapping: React.FunctionComponent = () => {
.then((data) => {
setApiData(data)
setMappingViewSelectValueOld(mappingViewSelectValue)
if (data.default_view != '') {
if (data.default_view != '' && data.default_view != 'null' && data.default_view != undefined) {
setMappingViewSelectValue(data.default_view)
} else {
setMappingViewSelectValue(Constants.DEFAULT_VIEW)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "BASIL"
version = "1.2.4"
version = "1.2.5"
description = "open source software quality management tool"
authors = [
{name = "Luigi Pellecchia", email = "[email protected]"},
Expand Down

0 comments on commit cb94ddd

Please sign in to comment.