mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix: await auth.set to prevent race condition when setting API key (#8075)
This commit is contained in:
parent
d839f70834
commit
bf37a88f7f
@ -225,7 +225,7 @@ function ApiMethod(props: ApiMethodProps) {
|
||||
}
|
||||
onConfirm={async (value) => {
|
||||
if (!value) return
|
||||
sdk.client.auth.set({
|
||||
await sdk.client.auth.set({
|
||||
providerID: props.providerID,
|
||||
auth: {
|
||||
type: "api",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user