diff --git a/frontend/src/pages/Applications/Applications.js b/frontend/src/pages/Applications/Applications.js index 2e348d9..2aec75c 100644 --- a/frontend/src/pages/Applications/Applications.js +++ b/frontend/src/pages/Applications/Applications.js @@ -575,7 +575,7 @@ const ApplicationPlanModal = ({ // Reset form when modal opens fresh (not editing) useEffect(() => { - if (!editingPlan && showPlanForm) { + if (!editingPlan) { setPlanData({ propertyId: '', selectedAreas: [], @@ -588,10 +588,8 @@ const ApplicationPlanModal = ({ plannedDate: '', notes: '' }); - // Also clear property details for new plans to prevent showing previous property's map - setSelectedPropertyDetails(null); } - }, [editingPlan, showPlanForm]); + }, [editingPlan]); // Check spreader settings when both product and equipment are selected for granular applications useEffect(() => {