diff options
| author | codetorso <[email protected]> | 2024-08-09 02:49:18 +0530 |
|---|---|---|
| committer | codetorso <[email protected]> | 2024-08-09 02:49:18 +0530 |
| commit | c36bd93182815dd684c2d940b511bad4db265edb (patch) | |
| tree | fdc1846020c8b1225836a0d84f54e10ca0a2b09a | |
| parent | memory queue fix (diff) | |
| download | supermemory-c36bd93182815dd684c2d940b511bad4db265edb.tar.xz supermemory-c36bd93182815dd684c2d940b511bad4db265edb.zip | |
one more commit needed
| -rw-r--r-- | apps/web/app/(dash)/menu.tsx | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/apps/web/app/(dash)/menu.tsx b/apps/web/app/(dash)/menu.tsx index 3dc47630..bdc1aa8a 100644 --- a/apps/web/app/(dash)/menu.tsx +++ b/apps/web/app/(dash)/menu.tsx @@ -130,14 +130,7 @@ function Menu() { }); setContent(""); setSelectedSpaces([]); - if (cont.success) { - toast.success("Memory queued", { - richColors: true, - }); - } else { - throw new Error(`Memory creation failed: ${cont.error}`); - return cont; - } + return cont; }; const formSubmit = () => { @@ -152,7 +145,7 @@ function Menu() { error: (error) => `Memory creation failed: ${error}`, richColors: true, }); - } + }; return ( <> @@ -203,10 +196,7 @@ function Menu() { </div> <DialogContent className="sm:max-w-[475px] text-[#F2F3F5] rounded-2xl bg-background z-[39]"> - <form - action={formSubmit} - className="flex flex-col gap-4 " - > + <form action={formSubmit} className="flex flex-col gap-4 "> <DialogHeader> <DialogTitle>Add memory</DialogTitle> <DialogDescription className="text-[#F2F3F5]"> |