refac
This commit is contained in:
1 parent
4b9f821b58
commit
4c94f5d434
1 file changed
+4
-2
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user