|
@@ -226,20 +226,8 @@ const LandmarkDetails: React.FC<LandmarkDetailsProps> = ({markerWindowPosition,
|
|
|
*/
|
|
|
const editLandmark = async () => {
|
|
|
if (updatedLandmark) {
|
|
|
- if (updatedLandmark?.landmark_type == 30) {
|
|
|
- Alert.alert(
|
|
|
- 'Are you sure?',
|
|
|
- "This will convert the landmark to an empty group and is irreversible.",
|
|
|
- [
|
|
|
- {text: 'Cancel', onPress: () => {return}},
|
|
|
- {text: "Okay", onPress: async () => {await editLandmarkMutation.mutateAsync(updatedLandmark); setEditing(false);}},
|
|
|
- ]
|
|
|
- )
|
|
|
- }
|
|
|
- else {
|
|
|
- await editLandmarkMutation.mutateAsync(updatedLandmark)
|
|
|
- setEditing(false);
|
|
|
- }
|
|
|
+ await editLandmarkMutation.mutateAsync(updatedLandmark)
|
|
|
+ setEditing(false);
|
|
|
}
|
|
|
}
|
|
|
|