aboutsummaryrefslogtreecommitdiff
path: root/apps/web
diff options
context:
space:
mode:
authorcodetorso <[email protected]>2024-08-09 02:49:18 +0530
committercodetorso <[email protected]>2024-08-09 02:49:18 +0530
commitc36bd93182815dd684c2d940b511bad4db265edb (patch)
treefdc1846020c8b1225836a0d84f54e10ca0a2b09a /apps/web
parentmemory queue fix (diff)
downloadsupermemory-c36bd93182815dd684c2d940b511bad4db265edb.tar.xz
supermemory-c36bd93182815dd684c2d940b511bad4db265edb.zip
one more commit needed
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/app/(dash)/menu.tsx16
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]">