show "not allowed due to facet mismatch" only when need was actually retrieved
@@ -114,7 +114,9 @@ function genComponentConf() {
const uriToFetchIsWhatsAround = needUtils.isWhatsAroundNeed(
get(allForbiddenNeeds, this.uriToFetch)
);
- const uriToFetchIsNotAllowed = !this.hasAtLeastOneAllowedFacet(
+ const uriToFetchIsNotAllowed =
+ !!get(allForbiddenNeeds, this.uriToFetch) &&
+ !this.hasAtLeastOneAllowedFacet(
get(allForbiddenNeeds, this.uriToFetch)
);
const uriToFetchIsExcluded = this.isExcludedNeed(
