Skip to content

Commit

Permalink
Merge pull request #1492 from terrestris/fix-gfi-reset
Browse files Browse the repository at this point in the history
Reset form fields before setting values
  • Loading branch information
LukasLohoff authored Feb 27, 2024
2 parents 422346f + e72b4e6 commit 5b98605
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const FeatureInfoForm: React.FC<FeatureInfoFormProps> = ({
const [form] = useForm();

useEffect(() => {
form.resetFields();
form.setFieldsValue(feature.getProperties());
}, [feature, form]);

Expand Down

0 comments on commit 5b98605

Please sign in to comment.