fix: 🐛 empty member ids within managed groups (#1600)

This commit is contained in:
Dharini Jeeva authored and GitHub committed 2023-01-23 15:27:23 -08:00
1 parent 57fcab4c53
commit df70c76b29
1 file changed
+7 -5
@@ -20,11 +20,13 @@ export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsManagedGroupMe
return {
managedGroup,
members: await this.resourceFilterStore.queryBy(
'account',
{ id: member_ids },
{ auth_method_id }
),
members: member_ids?.length
? await this.resourceFilterStore.queryBy(
'account',
{ id: member_ids },
{ auth_method_id }
)
: [],
};
}
}