aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-06-24 23:38:47 -0500
committerDhravya <[email protected]>2024-06-24 23:38:47 -0500
commite8b249ffef208a012bcdcdd31aab30382831cc3a (patch)
treed0f921f414dba534625a22b32db868b75f989f78
parentclose modal after adding memory (diff)
downloadsupermemory-e8b249ffef208a012bcdcdd31aab30382831cc3a.tar.xz
supermemory-e8b249ffef208a012bcdcdd31aab30382831cc3a.zip
we close the modal once memory creation is started
-rw-r--r--apps/web/app/(dash)/dynamicisland.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/web/app/(dash)/dynamicisland.tsx b/apps/web/app/(dash)/dynamicisland.tsx
index a26b127f..9061b8ad 100644
--- a/apps/web/app/(dash)/dynamicisland.tsx
+++ b/apps/web/app/(dash)/dynamicisland.tsx
@@ -266,14 +266,13 @@ function PageForm({
content: content,
spaces: space ? [space] : undefined,
});
+ cancelfn();
if (cont.success) {
toast.success("Memory created");
} else {
toast.error("Memory creation failed");
}
-
- cancelfn();
}}
className="bg-secondary border border-muted-foreground px-4 py-3 rounded-2xl mt-2 flex flex-col gap-3"
>