This commit is contained in:
@ -687,9 +687,6 @@ const handleMapClick = async (coords) => {
|
|||||||
rentType: rentTypeMap[formData.offerType] ?? RentType.MONTHLY,
|
rentType: rentTypeMap[formData.offerType] ?? RentType.MONTHLY,
|
||||||
type: formData.furnished ? RentPropertyType.FURNISHED : RentPropertyType.UNFURNISHED,
|
type: formData.furnished ? RentPropertyType.FURNISHED : RentPropertyType.UNFURNISHED,
|
||||||
allowedPaymentPeriod: formData.allowedPaymentPeriod || '',
|
allowedPaymentPeriod: formData.allowedPaymentPeriod || '',
|
||||||
isSmokeAllow: null,
|
|
||||||
specializedFor: null,
|
|
||||||
isVisitorAllow: null,
|
|
||||||
};
|
};
|
||||||
console.log('[AddProperty] Rent payload:', JSON.stringify(payload, null, 2));
|
console.log('[AddProperty] Rent payload:', JSON.stringify(payload, null, 2));
|
||||||
const res = await addRentProperty(payload);
|
const res = await addRentProperty(payload);
|
||||||
|
|||||||
@ -1309,9 +1309,6 @@ export default function OwnerPropertiesPage() {
|
|||||||
rentType: rentTypeMap[updatedProperty.rentType] ?? 0,
|
rentType: rentTypeMap[updatedProperty.rentType] ?? 0,
|
||||||
type: updatedProperty.furnished ? 0 : 1,
|
type: updatedProperty.furnished ? 0 : 1,
|
||||||
allowedPaymentPeriod: "",
|
allowedPaymentPeriod: "",
|
||||||
isSmokeAllow: null,
|
|
||||||
specializedFor: null,
|
|
||||||
isVisitorAllow: null,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
await editRentProperty(updatedProperty.id, payload);
|
await editRentProperty(updatedProperty.id, payload);
|
||||||
|
|||||||
Reference in New Issue
Block a user