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

Fix previous facet selections combined with unkown

parent df717ee2
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ export const getFacet = async ({
}
/* if there is previous selections in this facet AND in some other facet, we need an
additional block for facet values that return 0 hits */
if (previousSelectionsExist && previousSelectionsFromOtherFacetsExist) {
if (previousSelectionsExist && previousSelectionsFromOtherFacetsExist && currentSelectionsWithoutUnknown.length > 0) {
selectedNoHitsBlock = generateSelectedNoHitsBlock({
backendSearchConfig,
facetClass,
......@@ -156,6 +156,9 @@ export const getFacet = async ({
if (langTag) {
q = q.replace(/<LANG>/g, langTag)
}
// if (facetID === '...') {
// console.log(endpoint.prefixes + q)
// }
const response = await runSelectQuery({
query: endpoint.prefixes + q,
endpoint: endpoint.url,
......
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