fixed getSaleProperiesById and make login type is email
All checks were successful
Build frontend / build (push) Successful in 1m46s
All checks were successful
Build frontend / build (push) Successful in 1m46s
This commit is contained in:
@ -192,7 +192,7 @@ export async function getSaleProperties() {
|
||||
}
|
||||
|
||||
export async function getSaleProperty(id) {
|
||||
const items = await apiFetch("/SaleProperties/GetSaleProperties");
|
||||
const items = await apiFetch(`/SaleProperties/GetSalePropertyById/${id}`);
|
||||
if (!Array.isArray(items)) return items;
|
||||
return items.find((p) => p.id == id) || items[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user