aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/components/Sidebar/AddMemoryDialog.tsx
diff options
context:
space:
mode:
authoryxshv <[email protected]>2024-04-14 14:29:23 +0530
committeryxshv <[email protected]>2024-04-14 14:29:23 +0530
commitfa39265142a7aa452a273e4290d58757af2786bb (patch)
tree52e2e07d2a20009d650ed0b3ebe60aaab87d81ff /apps/web/src/components/Sidebar/AddMemoryDialog.tsx
parentfixed notes vectorize (diff)
downloadsupermemory-fa39265142a7aa452a273e4290d58757af2786bb.tar.xz
supermemory-fa39265142a7aa452a273e4290d58757af2786bb.zip
new modals
Diffstat (limited to 'apps/web/src/components/Sidebar/AddMemoryDialog.tsx')
-rw-r--r--apps/web/src/components/Sidebar/AddMemoryDialog.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/web/src/components/Sidebar/AddMemoryDialog.tsx b/apps/web/src/components/Sidebar/AddMemoryDialog.tsx
index 95bb3d22..f6a7224f 100644
--- a/apps/web/src/components/Sidebar/AddMemoryDialog.tsx
+++ b/apps/web/src/components/Sidebar/AddMemoryDialog.tsx
@@ -165,13 +165,12 @@ export function NoteAddPage({ closeDialog }: { closeDialog: () => void }) {
onClick={() => {
if (check()) {
setLoading(true);
- const randomId = Math.floor(Math.random() * 1000000);
addMemory(
{
content,
title: name,
type: "note",
- url: `https://notes.supermemory.dhr.wtf/${randomId}`,
+ url: `https://notes.supermemory.dhr.wtf/`,
image: "",
savedAt: new Date(),
},