Skip to content

Commit

Permalink
[Version 1.42.9] Fix bugs (#298)
Browse files Browse the repository at this point in the history
* Fix error on dashboard when indicator is deleted

* Fix RT code is number, it turns as float

* Bump version
  • Loading branch information
meomancer authored Aug 26, 2024
1 parent efa58c0 commit d8defcc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_project/_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.42.8
1.42.9
1 change: 0 additions & 1 deletion django_project/core/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,3 @@
)
except ImportError:
pass
MOCK_GEOREPO = True
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const RenderIndicatorLegendSection = ({ rules, name }) => {
<div className='MapLegendSection'>
<div className='MapLegendSectionTitle'>{name}</div>
{
rules !== null ?
![null, undefined].includes(rules) ?
<Fragment>
{
rules.length ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def _process_data(self):
if value.__class__ is str:
try:
value = float(value)
if value.is_integer():
value = int(value)
except (ValueError, TypeError):
pass

Expand Down

0 comments on commit d8defcc

Please sign in to comment.