"vscode:/vscode.git/clone" did not exist on "6bc10c8794af2b47f80bbbe856bcbd3efaa8abed"
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) {
if ($models.find((m) => m.id === model.id)) {
await updateModelById(localStorage.token, model.id, model.info).catch((error) => { await updateModelById(localStorage.token, model.id, model.info).catch((error) => {
return null; 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