forked from amer2004/SweetHome
Added payment types
This commit is contained in:
@ -187,7 +187,7 @@ function mapApiDetail(item) {
|
||||
const rawImages = Array.isArray(info.images) ? info.images : [];
|
||||
const photosFallback = Array.isArray(details.photos) ? details.photos : [];
|
||||
const allRaw = rawImages.length > 0 ? rawImages : photosFallback;
|
||||
const images = allRaw.length > 0 ? allRaw.map(buildImageUrl) : [];
|
||||
const images = allRaw.length > 0 ? allRaw.map(buildImageUrl).filter(Boolean) : [];
|
||||
|
||||
// Normalize services: Flutter sends list of strings or object with boolean values
|
||||
const rawServices = details.services || {};
|
||||
|
||||
Reference in New Issue
Block a user