mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-15 01:04:18 +00:00
we close the modal once memory creation is started
This commit is contained in:
parent
a0a6d3bf0b
commit
e8b249ffef
1 changed files with 1 additions and 2 deletions
|
|
@ -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"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue