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);