Skip to content
Snippets Groups Projects
Commit fd2feebf authored by esikkala's avatar esikkala
Browse files

Client FS selector: check for missing results

parent f5ccbf6e
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,13 @@ const getSortDirection = state => state.sortDirection
export const filterResults = createSelector(
[getResults, getFacets, getLastlyUpdatedFacet, getSortBy, getSortDirection],
(results, facets, lastlyUpdatedFacet, sortBy, sortDirection) => {
if (results == null) {
return {
clientFSResults: null,
clientFSFacetValues: null
}
}
// Filter results by current facet selections
Object.values(facets).forEach(facet => {
const { facetID, filterType } = facet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment