filter placeholder role so it cannot be selected for invites

This commit is contained in:
Gregor Vostrak
2024-04-21 00:25:43 +02:00
parent c5a6608211
commit 338e4ec469
4 changed files with 13 additions and 4 deletions

View File

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