Commit 2981caa3 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: import models

parent 5c6373e0
...@@ -307,9 +307,15 @@ ...@@ -307,9 +307,15 @@
for (const model of savedModels) { for (const model of savedModels) {
if (model?.info ?? false) { if (model?.info ?? false) {
await updateModelById(localStorage.token, model.id, model.info).catch((error) => { if ($models.find((m) => m.id === model.id)) {
return null; await updateModelById(localStorage.token, model.id, model.info).catch((error) => {
}); return null;
});
} else {
await addNewModel(localStorage.token, model.info).catch((error) => {
return null;
});
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment