mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-06 02:47:54 +00:00
removed loading stuff
This commit is contained in:
parent
e38a932efd
commit
3d01911315
1 changed files with 3 additions and 5 deletions
|
|
@ -255,17 +255,18 @@ function PageForm({
|
|||
action={async (e: FormData) => {
|
||||
const content = e.get("content")?.toString();
|
||||
const space = e.get("space")?.toString();
|
||||
|
||||
toast.info("Creating memory...");
|
||||
|
||||
if (!content) {
|
||||
toast.error("Content is required");
|
||||
return;
|
||||
}
|
||||
setLoading(true);
|
||||
const cont = await createMemory({
|
||||
content: content,
|
||||
spaces: space ? [space] : undefined,
|
||||
});
|
||||
|
||||
setLoading(false);
|
||||
if (cont.success) {
|
||||
toast.success("Memory created");
|
||||
} else {
|
||||
|
|
@ -291,9 +292,6 @@ function PageForm({
|
|||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
<div key={`${loading}-${pending}`}>
|
||||
{loading ? <div>Loading...</div> : "not loading"}
|
||||
</div>
|
||||
<div>
|
||||
<Label className="text-[#858B92]" htmlFor="name">
|
||||
Page Url
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue