From a5f64b26a97baa25985aede5398d7b26c9b8ff4b Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Wed, 27 Aug 2025 10:44:46 -0400 Subject: [PATCH] asdf --- .../components/Applications/ApplicationExecutionModal.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Applications/ApplicationExecutionModal.js b/frontend/src/components/Applications/ApplicationExecutionModal.js index f93ac31..0b4c1db 100644 --- a/frontend/src/components/Applications/ApplicationExecutionModal.js +++ b/frontend/src/components/Applications/ApplicationExecutionModal.js @@ -214,6 +214,7 @@ const ApplicationExecutionModal = ({ application, propertyDetails, onClose, onCo console.log('Complete Application - Plan Details:', planDetails); console.log('Complete Application - Equipment:', planDetails?.equipment); console.log('Complete Application - Products:', planDetails?.products); + console.log('Complete Application - Raw Products:', JSON.stringify(planDetails?.products, null, 2)); // Ensure we have valid data from fetched plan details const validSectionId = sections.length > 0 ? sections[0].id : null; @@ -247,7 +248,7 @@ const ApplicationExecutionModal = ({ application, propertyDetails, onClose, onCo planId: application.id, lawnSectionId: validSectionId, equipmentId: validEquipmentId, - applicationDate: endTime.toISOString(), // Use applicationDate + completedDate: endTime.toISOString(), // Try completedDate instead gpsTrack: { points: gpsTrack, totalDistance: totalDistance, @@ -259,6 +260,9 @@ const ApplicationExecutionModal = ({ application, propertyDetails, onClose, onCo products: validProducts }; + // Debug: log the exact data being sent + console.log('Sending log data:', JSON.stringify(logData, null, 2)); + try { // Save the application log to the backend await applicationsAPI.createLog(logData);