This commit is contained in:
Timothy Jaeryang Baek 2026-02-19 15:59:58 -06:00
parent 35763a352c
commit 723185c22f
2 changed files with 7 additions and 2 deletions

View file

@ -681,7 +681,8 @@
}
toast.success($i18n.t('Functions imported successfully'));
functions.set(await getFunctions(localStorage.token));
functions = await getFunctionList(localStorage.token);
_functions.set(await getFunctions(localStorage.token));
models.set(
await getModels(
localStorage.token,
@ -690,6 +691,8 @@
true
)
);
importFiles = null;
functionsImportInputElement.value = '';
};
reader.readAsText(importFiles[0]);

View file

@ -615,7 +615,9 @@
}
toast.success($i18n.t('Tool imported successfully'));
tools.set(await getTools(localStorage.token));
await init();
importFiles = null;
toolsImportInputElement.value = '';
};
reader.readAsText(importFiles[0]);