lint
This commit is contained in:
@@ -31,10 +31,6 @@ const Applications = () => {
|
||||
// Application execution state
|
||||
const [executingApplication, setExecutingApplication] = useState(null);
|
||||
const [showExecutionModal, setShowExecutionModal] = useState(false);
|
||||
const [isTracking, setIsTracking] = useState(false);
|
||||
const [gpsTrack, setGpsTrack] = useState([]);
|
||||
const [currentSpeed, setCurrentSpeed] = useState(0);
|
||||
const [currentLocation, setCurrentLocation] = useState(null);
|
||||
|
||||
useEffect(() => {
|
||||
fetchApplications();
|
||||
@@ -1410,10 +1406,6 @@ const ApplicationPlanModal = ({
|
||||
onClose={() => {
|
||||
setShowExecutionModal(false);
|
||||
setExecutingApplication(null);
|
||||
setIsTracking(false);
|
||||
setGpsTrack([]);
|
||||
setCurrentLocation(null);
|
||||
setCurrentSpeed(0);
|
||||
}}
|
||||
onComplete={async (logData) => {
|
||||
try {
|
||||
@@ -1427,10 +1419,6 @@ const ApplicationPlanModal = ({
|
||||
// Close modal
|
||||
setShowExecutionModal(false);
|
||||
setExecutingApplication(null);
|
||||
setIsTracking(false);
|
||||
setGpsTrack([]);
|
||||
setCurrentLocation(null);
|
||||
setCurrentSpeed(0);
|
||||
} catch (error) {
|
||||
console.error('Failed to save application log:', error);
|
||||
toast.error('Failed to save application log');
|
||||
|
||||
Reference in New Issue
Block a user