asdf
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user