Skip to content

Commit

Permalink
re render after accepotign a feature
Browse files Browse the repository at this point in the history
  • Loading branch information
omranlm committed Oct 9, 2023
1 parent 1d4706e commit c4ea89c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const EditableGeoJSON = ({
mapref.removeLayer(createdLayer);
};
const { accessToken } = useContext(AuthContext);

const [render, setRender] = useState(Math.random());
const submitFeedback = async (layer) => {
try {
// console.log("layer", layer);
Expand Down Expand Up @@ -271,7 +271,7 @@ const EditableGeoJSON = ({
// console.log("popup layer ", layer);
// handle submitting feedback
// mutateSubmitFeedback(layer);

setRender(Math.random());
popup.close();
});
}
Expand Down

0 comments on commit c4ea89c

Please sign in to comment.