remove owner from invite member select, fix modal not closing bug

This commit is contained in:
Gregor Vostrak
2024-07-03 12:53:52 +02:00
parent 8f0be6efce
commit a8d82d0d2c
3 changed files with 19 additions and 5 deletions

View File

@@ -2,6 +2,6 @@ import type { Role } from '@/types/jetstream';
export function filterRoles(roles: Role[]) {
return roles.filter(function (role) {
return role.key !== 'placeholder';
return role.key !== 'placeholder' || role.name !== 'owner';
});
}