From 1c2b890c32b463aa339f8bdef36814fdc01fae5b Mon Sep 17 00:00:00 2001 From: Michael Holthausen Date: Tue, 6 Jun 2023 11:43:26 +0200 Subject: [PATCH] fix: removes unnecessary check --- .../EditFeatureDrawer/EditFeatureFullForm/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/EditFeatureDrawer/EditFeatureFullForm/index.tsx b/src/components/EditFeatureDrawer/EditFeatureFullForm/index.tsx index 77daad267..3802a920b 100644 --- a/src/components/EditFeatureDrawer/EditFeatureFullForm/index.tsx +++ b/src/components/EditFeatureDrawer/EditFeatureFullForm/index.tsx @@ -94,13 +94,11 @@ export const EditFeatureFullForm: React.FC = ({ }); 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) {