Skip to content

Commit 41a0143

Browse files
committed
fix: inccorect filter in getautoassigned role
1 parent e5339a3 commit 41a0143

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/user/getAutoAssignedRoles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export const checkIfRoleIsAssigned = (
3636

3737
// filter descriptor
3838
if (filter.field === '{{groups}}') {
39-
const value = filter.value.filter((x) => x !== null);
39+
// todo: check other versions of the code
40+
const value = (filter.value || []).filter((x) => x !== null);
4041
switch (filter.operator) {
4142
case 'eq': {
4243
return isEqual(

0 commit comments

Comments
 (0)