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