fixed some changes in the ccode
All checks were successful
Build frontend / build (push) Successful in 1m10s
All checks were successful
Build frontend / build (push) Successful in 1m10s
This commit is contained in:
@ -680,7 +680,7 @@ const PropertyEditModal = ({ isOpen, onClose, property, onSave }) => {
|
|||||||
setFormData({
|
setFormData({
|
||||||
propertyType: property.propertyType || 'apartment',
|
propertyType: property.propertyType || 'apartment',
|
||||||
furnished: property.furnished ?? false,
|
furnished: property.furnished ?? false,
|
||||||
description: property.description || '',
|
description: property.description || details.description || '',
|
||||||
bedrooms: property.bedrooms || 0,
|
bedrooms: property.bedrooms || 0,
|
||||||
bathrooms: property.bathrooms || 0,
|
bathrooms: property.bathrooms || 0,
|
||||||
floor: property.floor ?? details.floorNumber ?? details.floor ?? 0,
|
floor: property.floor ?? details.floorNumber ?? details.floor ?? 0,
|
||||||
@ -1620,7 +1620,7 @@ export default function OwnerPropertiesPage() {
|
|||||||
formData.currencyId || property.currencyId || 1,
|
formData.currencyId || property.currencyId || 1,
|
||||||
rentType: rentTypeMap[formData.rentType] ?? 0,
|
rentType: rentTypeMap[formData.rentType] ?? 0,
|
||||||
type: formData.furnished ? 0 : 1,
|
type: formData.furnished ? 0 : 1,
|
||||||
allowedPaymentPeriod: formData.allowedPaymentPeriod || '',
|
allowedPaymentPeriod: formData.allowedPaymentPeriod || '1.00:00:00',
|
||||||
});
|
});
|
||||||
await editRentProperty(property.id, payload);
|
await editRentProperty(property.id, payload);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -334,7 +334,7 @@ export async function addRentProperty(data) {
|
|||||||
export async function editRentProperty(id, data) {
|
export async function editRentProperty(id, data) {
|
||||||
return apiFetch(`/RentProperties/EditRentProperty/${id}`, {
|
return apiFetch(`/RentProperties/EditRentProperty/${id}`, {
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: buildRentPropertyPayload(data),
|
body: { rentPropertyDto: buildRentPropertyPayload(data) },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user