Skip to content

Commit

Permalink
fire events fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Maneesh7012 committed Jan 30, 2024
1 parent 97ef74a commit 5784adf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/web_portal/src/components/MapComponent/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -939,10 +939,12 @@ class LeafletMap extends React.Component {
pointData: true,
});
try {
const res = await axios.get(process.env.REACT_APP_APIEND + `cropfire`);
const response = await axios.get(
process.env.REACT_APP_APIEND + `cropfire?layer_id=` + this.props.LayerDescription.id
);
this.setState(
{
pointVector: res.data.data,
pointVector: response.data.data,
},
() => {}
);
Expand Down

0 comments on commit 5784adf

Please sign in to comment.