Unverified Commit f359af83 authored by Robert Knight's avatar Robert Knight Committed by GitHub

Update src/sidebar/services/groups.js

Co-Authored-By: 's avatarseanh <seanh@users.noreply.github.com>
parent 7acae333
......@@ -51,7 +51,9 @@ function groups($rootScope, store, api, isSidebar, localStorage, serviceUrl, ses
// If service groups are specified only return those.
// If a service group doesn't exist in the list of groups don't return it.
if (svc && svc.groups) {
const focusedGroups = groups.filter(g => svc.groups.includes(g.id) || svc.groups.includes(g.groupid));
const focusedGroups = groups.filter(g =>
svc.groups.includes(g.id) || svc.groups.includes(g.groupid)
);
return Promise.resolve(focusedGroups);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment