added features and fixes
This commit is contained in:
@@ -257,8 +257,9 @@ function RoleForm({ serverId, role, onClose }: RoleFormProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export function RoleManager() {
|
||||
const { serverId } = useParams<{ serverId: string }>();
|
||||
export function RoleManager({ serverId: propServerId }: { serverId?: string } = {}) {
|
||||
const { serverId: paramServerId } = useParams<{ serverId: string }>();
|
||||
const serverId = propServerId || paramServerId;
|
||||
const roles = useRoleStore((s) => s.roles);
|
||||
const loading = useRoleStore((s) => s.loading);
|
||||
const error = useRoleStore((s) => s.error);
|
||||
|
||||
Reference in New Issue
Block a user