fixed undefined (#582)

fixing: #453
This commit is contained in:
Erik Jan de Wit 2021-05-06 07:32:42 +02:00 committed by GitHub
parent 8d72f8a705
commit d3615b1780
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ export const UsersInRoleTab = () => {
first: first!, first: first!,
max: max!, max: max!,
}); });
return usersWithRole; return usersWithRole || [];
}; };
const { enabled } = useContext(HelpContext); const { enabled } = useContext(HelpContext);