From caf7fe08e6069dea13a198355bb428bde60d8975 Mon Sep 17 00:00:00 2001 From: josc146 Date: Sat, 20 May 2023 16:46:46 +0800 Subject: [PATCH] update --- frontend/src/utils/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/index.tsx b/frontend/src/utils/index.tsx index 257677d..b88cefe 100644 --- a/frontend/src/utils/index.tsx +++ b/frontend/src/utils/index.tsx @@ -77,7 +77,7 @@ export async function refreshLocalModels(cache: { models: ModelSourceItem[] }, f cache.models[j].lastUpdatedMs = Date.parse(cache.models[j].lastUpdated); if (cache.models[i].name === cache.models[j].name) { - if (cache.models[i].size === cache.models[j].size) { + if (cache.models[i].size <= cache.models[j].size) { // j is local file if (cache.models[i].lastUpdatedMs! < cache.models[j].lastUpdatedMs!) { cache.models[i] = Object.assign({}, cache.models[i], cache.models[j]); } else {