fix: api keys role list remove union role (#6432)

This commit is contained in:
ajie 2025-03-12 20:40:01 +08:00 committed by GitHub
parent 6bbaabba73
commit 0740fd646c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ import { ExpiresSelect } from './ExpiresSelect';
import { configurationSchema } from './schema';
export const Configuration = () => {
const currentRoles = useCurrentRoles();
const currentRoles = useCurrentRoles().filter((x) => x.name !== '__union__');
return (
<SchemaComponentOptions scope={{ currentRoles }} components={{ ExpiresSelect }}>
<NocoBaseRecursionField schema={configurationSchema} />