Skip to content

Commit 9711f0a

Browse files
committed
Bugfix for empty institution_guid
1 parent 3574be7 commit 9711f0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dashboard-gui/src/javascripts/components/app_list.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ export default function AppList({apps, currentUser, facets: remoteFacets, connec
126126
{
127127
value: I18n.t('facets.static.used_by_idp.yes'),
128128
searchValue: 'yes',
129-
count: (apps) => apps.filter((app) => currentUser.getCurrentIdp().institutionId === app.institutionId).length,
129+
count: (apps) => apps.filter((app) => currentUser.getCurrentIdp().institutionId === app.institutionId
130+
&& app.institutionId !== undefined && app.institutionId !== null).length,
130131
},
131132
{
132133
value: I18n.t('facets.static.used_by_idp.no'),

0 commit comments

Comments
 (0)