HotFix: QuotaTag 循环调用 (#7788)

This commit is contained in:
Chen Tao 2025-07-03 18:22:29 +08:00 committed by GitHub
parent 9847db5c83
commit 25d6a1f02f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,12 +38,12 @@ const QuotaTag: FC<{ base: KnowledgeBase; providerId: string; quota?: number }>
}
}
}
if (_quota) {
if (_quota !== undefined) {
updatePreprocessProvider({ ...provider, quota: _quota })
return
}
checkQuota()
}, [_quota, base, provider, quota, updatePreprocessProvider])
}, [_quota, base, provider.id, provider.apiKey])
return (
<>