Skip to content

Commit

Permalink
refactor(frontend): reset takeoff point state incase the location is …
Browse files Browse the repository at this point in the history
…not valid (#351)
  • Loading branch information
bijayrauniyar0 authored Nov 22, 2024
1 parent 9e26bcd commit eb7d058
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const MapSection = ({ className }: { className?: string }) => {
},
onError: (err: any) => {
toast.error(err?.response?.data?.detail || err.message);
dispatch(setSelectedTakeOffPoint(null));
},
});

Expand Down

0 comments on commit eb7d058

Please sign in to comment.