mirror of
https://github.com/coaidev/coai.git
synced 2025-05-22 14:30:14 +09:00
chore: update charge request life cycle
This commit is contained in:
parent
967eef751d
commit
07e83e45eb
@ -501,10 +501,11 @@ function ChargeWidget() {
|
||||
}, [data]);
|
||||
|
||||
const unusedModels = useMemo(() => {
|
||||
if (loading) return [];
|
||||
return allModels.filter(
|
||||
(model) => !usedModels.includes(model) && model.trim() !== "",
|
||||
);
|
||||
}, [allModels, usedModels]);
|
||||
}, [loading, allModels, usedModels]);
|
||||
|
||||
async function refresh() {
|
||||
setLoading(true);
|
||||
|
Loading…
Reference in New Issue
Block a user