This commit is contained in:
Jake Kasper
2025-08-26 09:34:48 -05:00
parent 50f6befb1b
commit 2f5355db73

View File

@@ -575,7 +575,7 @@ const ApplicationPlanModal = ({
// Reset form when modal opens fresh (not editing) // Reset form when modal opens fresh (not editing)
useEffect(() => { useEffect(() => {
if (!editingPlan && showPlanForm) { if (!editingPlan) {
setPlanData({ setPlanData({
propertyId: '', propertyId: '',
selectedAreas: [], selectedAreas: [],
@@ -588,10 +588,8 @@ const ApplicationPlanModal = ({
plannedDate: '', plannedDate: '',
notes: '' 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 // Check spreader settings when both product and equipment are selected for granular applications
useEffect(() => { useEffect(() => {