From be5ede92bd5d3b47522248d7b009160bf46bcac8 Mon Sep 17 00:00:00 2001 From: Will Adams Date: Sat, 31 Aug 2024 12:06:29 +0100 Subject: [PATCH] correction: map over array to convert --- app/properties/search-results/page.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/properties/search-results/page.jsx b/app/properties/search-results/page.jsx index 0011678..da0fc5c 100644 --- a/app/properties/search-results/page.jsx +++ b/app/properties/search-results/page.jsx @@ -32,7 +32,7 @@ const SearchResultsPage = async ({ } const propertiesQueryResults = await Property.find(query).lean(); - const properties = convertToSerializeableObject(propertiesQueryResults); + const properties = propertiesQueryResults.map(convertToSerializeableObject); return ( <>