This commit is contained in:
Timothy Jaeryang Baek committed 2026-02-21 15:16:22 -06:00
1 parent 4b9f821b58
commit 4c94f5d434
1 file changed
+4 -2
+4 -2
View File
@@ -246,6 +246,7 @@
const savedPrompts = JSON.parse(event.target.result);
console.log(savedPrompts);
try {
for (const prompt of savedPrompts) {
await createNewPrompt(localStorage.token, {
command: prompt.command,
@@ -259,11 +260,12 @@
prompts = null;
page = 1;
getPromptList();
await getPromptList();
await _prompts.set(await getPrompts(localStorage.token));
} finally {
importFiles = [];
promptsImportInputElement.value = '';
}
};
reader.readAsText(importFiles[0]);