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
+4 -1
View File
@@ -681,7 +681,8 @@
} }
toast.success($i18n.t('Functions imported successfully')); 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( models.set(
await getModels( await getModels(
localStorage.token, localStorage.token,
@@ -690,6 +691,8 @@
true true
) )
); );
importFiles = null;
functionsImportInputElement.value = '';
}; };
reader.readAsText(importFiles[0]); reader.readAsText(importFiles[0]);
+3 -1
View File
@@ -615,7 +615,9 @@
} }
toast.success($i18n.t('Tool imported successfully')); toast.success($i18n.t('Tool imported successfully'));
tools.set(await getTools(localStorage.token)); await init();
importFiles = null;
toolsImportInputElement.value = '';
}; };
reader.readAsText(importFiles[0]); reader.readAsText(importFiles[0]);