Avoid crash in filter for apptype link
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user