mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 23:22:05 +08:00
HotFix: QuotaTag 循环调用 (#7788)
This commit is contained in:
parent
9847db5c83
commit
25d6a1f02f
@ -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 (
|
||||
<>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user