Skip to content

Commit

Permalink
Merge pull request #5206 from kobotoolbox/task-1199-bug-map-does-not-…
Browse files Browse the repository at this point in the history
…show-geo-points

[TASK-1199] Fix geo-points now displaying in map
  • Loading branch information
pauloamorimbr authored Oct 29, 2024
2 parents ffde206 + 7914b79 commit 6d239d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jsapp/js/components/map.es6
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,10 @@ export class FormMap extends React.Component {
});
}

this.setState({submissions: results});
this.buildMarkers(map);
this.buildHeatMap(map);
this.setState({submissions: results}, () => {
this.buildMarkers(map);
this.buildHeatMap(map);
});
})
.fail((error) => {
if (error.responseText) {
Expand Down

0 comments on commit 6d239d8

Please sign in to comment.