From 5f3da47caea284e7123d9cb6f4bfd785780b6318 Mon Sep 17 00:00:00 2001 From: Nuno Pereira Date: Tue, 13 Dec 2022 19:27:08 +0000 Subject: [PATCH] Made it so empty arrays are passsed to the offer searcher --- src/components/HomePage/URLSearchParamsParser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HomePage/URLSearchParamsParser.js b/src/components/HomePage/URLSearchParamsParser.js index a1635168..4d081344 100644 --- a/src/components/HomePage/URLSearchParamsParser.js +++ b/src/components/HomePage/URLSearchParamsParser.js @@ -33,8 +33,8 @@ const URLSearchParamsParser = ({ showSearchResults }) => { jobMaxDuration: queryParams.jobMaxDuration, jobMinDuration: queryParams.jobMinDuration, jobType: queryParams.jobType, - fields: ensureArray(queryParams.fields), - technologies: ensureArray(queryParams.technologies), + fields: ensureArray(queryParams.fields ?? []), + technologies: ensureArray(queryParams.technologies ?? []), }); // we specifically want this to only run once to avoid infinite re-renders