Skip to content

Commit

Permalink
fix points now displaying in map
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloamorimbr committed Oct 29, 2024
1 parent ffde206 commit 7914b79
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 7914b79

Please sign in to comment.