Filter app links on domain filter correctly

This commit is contained in:
Johannes Zellner
2022-09-28 12:06:38 +02:00
parent 1b889cca5f
commit e5430bd488
+1 -1
View File
@@ -234,8 +234,8 @@ app.filter('selectedTagFilter', function () {
app.filter('selectedDomainFilter', function () {
return function selectedDomainFilter(apps, selectedDomain) {
return apps.filter(function (app) {
if (!selectedDomain || app.type === APP_TYPES.LINK) return true;
if (selectedDomain._alldomains) return true; // magic domain for single select, see apps.js ALL_DOMAINS_DOMAIN
if (app.type === APP_TYPES.LINK) return false;
if (selectedDomain.domain === app.domain) return true;
if (app.aliasDomains.find(function (ad) { return ad.domain === selectedDomain.domain; })) return true;