Update server.tsx

This commit is contained in:
lin onetwo 2023-06-19 20:51:31 +08:00
parent fb5e262c93
commit bfb573798a

View file

@ -138,7 +138,7 @@ export function ServerOptions(props: IServerOptionsProps) {
edge='end'
color='primary'
checked={tokenAuth}
onChange={async (event) => {
onChange={async () => {
const nextTokenAuth = !tokenAuth;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const newAuthToken = authToken || await (window.service.auth.generateOneTimeAdminAuthTokenForWorkspace(id));