diff --git a/ui/src/actions/holdingpen.ts b/ui/src/actions/holdingpen.ts index fb57547bb..ae5b67ec6 100644 --- a/ui/src/actions/holdingpen.ts +++ b/ui/src/actions/holdingpen.ts @@ -215,7 +215,7 @@ export function fetchSearchResults(): ( const currentQuery = getState()?.holdingpen?.get('query')?.toJS() || {}; const resolveQuery = `${BACKOFFICE_SEARCH_API}/?${ Object.entries(currentQuery) - .filter(([_, value]) => value != null) + .filter(([_, value]) => value != null && value !== '') .map(([key, value]: [string, any]) => `${key}=${value}`) .join('&') || '' }`; diff --git a/ui/src/holdingpen-new/__tests__/__snapshots__/index.test.tsx.snap b/ui/src/holdingpen-new/__tests__/__snapshots__/index.test.tsx.snap index ccee76371..1390c0493 100644 --- a/ui/src/holdingpen-new/__tests__/__snapshots__/index.test.tsx.snap +++ b/ui/src/holdingpen-new/__tests__/__snapshots__/index.test.tsx.snap @@ -135,7 +135,7 @@ exports[`Holdingpen renders initial state 1`] = ` - new authors + all collections @@ -177,7 +177,6 @@ exports[`Holdingpen renders initial state 1`] = ` >