Skip to content

Commit aba9349

Browse files
authored
Merge pull request #293 from NIAEFEUP/develop
Hotfix: invalid array query params
2 parents b65a95f + c119f31 commit aba9349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/HomePage/URLSearchParamsParser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const URLSearchParamsParser = ({ showSearchResults }) => {
3333
jobMaxDuration: queryParams.jobMaxDuration,
3434
jobMinDuration: queryParams.jobMinDuration,
3535
jobType: queryParams.jobType,
36-
fields: ensureArray(queryParams.fields),
37-
technologies: ensureArray(queryParams.technologies),
36+
fields: ensureArray(queryParams.fields ?? []),
37+
technologies: ensureArray(queryParams.technologies ?? []),
3838
});
3939

4040
// we specifically want this to only run once to avoid infinite re-renders

0 commit comments

Comments
 (0)