refac
This commit is contained in:
1 parent
b1dc58ddb7
commit
10c13b686c
2 files changed
+3
-94
No files matched your search
@@ -248,11 +248,11 @@
|
||||
|
||||
for (const prompt of savedPrompts) {
|
||||
await createNewPrompt(localStorage.token, {
|
||||
command: prompt.command.charAt(0) === '/' ? prompt.command.slice(1) : prompt.command,
|
||||
title: prompt.title,
|
||||
command: prompt.command,
|
||||
name: prompt.name,
|
||||
content: prompt.content
|
||||
}).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
toast.error(typeof error === 'string' ? error : JSON.stringify(error));
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user