Avoid crash in filter for apptype link

This commit is contained in:
Johannes Zellner
2022-08-05 14:27:45 +02:00
parent aa580b404b
commit a7558cadaa

View File

@@ -247,7 +247,7 @@ app.filter('selectedTagFilter', function () {
app.filter('selectedDomainFilter', function () {
return function selectedDomainFilter(apps, selectedDomain) {
return apps.filter(function (app) {
if (!selectedDomain) return true;
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 (selectedDomain.domain === app.domain) return true;