From afd701df2225ae453857d244eb1a187b5bde51e4 Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Wed, 27 Aug 2025 10:19:40 -0400 Subject: [PATCH] asdf --- frontend/src/pages/Applications/Applications.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/frontend/src/pages/Applications/Applications.js b/frontend/src/pages/Applications/Applications.js index ce9cb08..925fb41 100644 --- a/frontend/src/pages/Applications/Applications.js +++ b/frontend/src/pages/Applications/Applications.js @@ -151,14 +151,13 @@ const Applications = () => { // Get the property ID from the application const propertyId = application.property?.id || application.section?.propertyId; - // Also fetch the property details if we don't have them and we have a valid property ID - if (!selectedPropertyDetails || (propertyId && selectedPropertyDetails.id !== propertyId)) { - if (propertyId) { - await fetchPropertyDetails(propertyId); - } else { - console.warn('No property ID found for application:', application); - toast.warning('No property associated with this application'); - } + // Try to fetch property details if we have a valid property ID + if (propertyId && (!selectedPropertyDetails || selectedPropertyDetails.id !== propertyId)) { + await fetchPropertyDetails(propertyId); + } else if (!propertyId) { + console.warn('No property ID found for application:', application); + // Clear any existing property details since this application doesn't have property info + setSelectedPropertyDetails(null); } setShowExecutionModal(true);