Skip to content

Commit

Permalink
fix: asset editing form did not show map due to wrong whitespacing in…
Browse files Browse the repository at this point in the history
… template (FlexMeasures#1310)

* fix whitespacing in braces

Signed-off-by: Nicolas Höning <[email protected]>

* add changelog entry

Signed-off-by: Nicolas Höning <[email protected]>

---------

Signed-off-by: Nicolas Höning <[email protected]>
  • Loading branch information
nhoening authored Jan 16, 2025
1 parent bfb1004 commit 43138c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions documentation/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Infrastructure / Support

Bugfixes
-----------
* Fix map not loading when editing an asset [see `PR #1310 <https://github.com/FlexMeasures/flexmeasures/pull/1310>`_]



v0.24.0 | January 7, 2025
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/ui/templates/crud/asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ <h5 class="card-title">${sensor.name}</h5>
});
var marker = L
.marker(
[{{ asset.latitude | replace("None", 10) }}, { { asset.longitude | replace("None", 10) } }],
[{{ asset.latitude | replace("None", 10) }}, {{ asset.longitude | replace("None", 10) }}],
{ icon: asset_icon }
).addTo(assetMap);

Expand Down

0 comments on commit 43138c3

Please sign in to comment.