asdf
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user