Skip to content

Commit

Permalink
fix: removes unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
mholthausen committed Jun 6, 2023
1 parent acda9d3 commit 1c2b890
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,11 @@ export const EditFeatureFullForm: React.FC<EditFeatureFullFormProps> = ({
});

if (
updatedFeatures?.features[0] &&
(allowedEditMode.includes('UPDATE') ||
allowedEditMode.includes('DELETE'))
updatedFeatures?.features[0]
) {
dispatch(setFeature(updatedFeatures?.features[0]));
}
}, [allowedEditMode, dispatch, executeGetFeature, layer]);
}, [dispatch, executeGetFeature, layer]);

const update = useCallback(async () => {
if (!map || !client) {
Expand Down

0 comments on commit 1c2b890

Please sign in to comment.