diff --git a/frontend/src/pages/Applications/Applications.js b/frontend/src/pages/Applications/Applications.js index c8979d8..33dbd02 100644 --- a/frontend/src/pages/Applications/Applications.js +++ b/frontend/src/pages/Applications/Applications.js @@ -270,6 +270,10 @@ const Applications = () => { onClick={() => { setSelectedPropertyDetails(null); // Clear previous property data setShowPlanForm(true); + // Test the execution state variables + console.log('Test:', showExecutionModal, executingApplication); + setShowExecutionModal(false); + setExecutingApplication(null); }} className="btn-primary flex items-center gap-2" > @@ -1399,32 +1403,8 @@ const ApplicationPlanModal = ({ )} {/* Application Execution Modal */} - {showExecutionModal && executingApplication && ( - { - setShowExecutionModal(false); - setExecutingApplication(null); - }} - onComplete={async (logData) => { - try { - // Save the application log to the backend - await applicationsAPI.createLog(logData); - toast.success('Application completed successfully'); - - // Refresh applications list - fetchApplications(); - - // Close modal - setShowExecutionModal(false); - setExecutingApplication(null); - } catch (error) { - console.error('Failed to save application log:', error); - toast.error('Failed to save application log'); - } - }} - /> + {showExecutionModal && ( +
Test: {executingApplication?.id}
)}