AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
fix: create notes in selected notebook
tianma-if9e497e55258c
diff --git a/apps/mobile/app.json b/apps/mobile/app.jsonindex e3548ab4..c27e4f82 100644--- a/apps/mobile/app.json+++ b/apps/mobile/app.json@@ -3,7 +3,7 @@"name": "EdgeEver","slug": "edgeever","scheme": "edgeever",- "version": "1.5.17",+ "version": "1.5.19","runtimeVersion": {"policy": "appVersion"},@@ -28,7 +28,7 @@},"android": {"package": "org.edgeever.mobile",- "versionCode": 37,+ "versionCode": 38,"adaptiveIcon": {"backgroundColor": "#d1fae5","backgroundImage": "./assets/icon.png",diff --git a/apps/mobile/src/screens/WorkspaceScreen.tsx b/apps/mobile/src/screens/WorkspaceScreen.tsxindex a02cea27..67e4f7c7 100644--- a/apps/mobile/src/screens/WorkspaceScreen.tsx+++ b/apps/mobile/src/screens/WorkspaceScreen.tsx@@ -579,7 +579,11 @@ export const WorkspaceScreen = () => {const defaultMemoNotebookId = notebooks.find((notebook) => notebook.id === "nb_inbox" || notebook.slug === "inbox" || notebook.name === "等待分类")?.id ?? "";- const canCreateMemo = memoView !== "trash" && Boolean(defaultMemoNotebookId);+ const createMemoNotebookId =+ activeNotebookId !== ALL_NOTES_ID && notebooks.some((notebook) => notebook.id === activeNotebookId)+ ? activeNotebookId+ : defaultMemoNotebookId;+ const canCreateMemo = memoView !== "trash" && Boolean(createMemoNotebookId);const openCreateMemo = () => {beginEditorStartup();setCreateOpen(true);@@ -1166,7 +1170,7 @@ export const WorkspaceScreen = () => {<CreateMemoModalbaseUrl={session?.baseUrl ?? ""}dataScope={dataScope}- defaultNotebookId={defaultMemoNotebookId}+ defaultNotebookId={createMemoNotebookId}imageCompressionEnabled={imageCompressionEnabled}notebooks={notebooks}onCreated={() => {diff --git a/apps/web/src/components/WorkspaceApp.tsx b/apps/web/src/components/WorkspaceApp.tsxindex 33f99d6e..fc929ead 100644--- a/apps/web/src/components/WorkspaceApp.tsx+++ b/apps/web/src/components/WorkspaceApp.tsx@@ -837,7 +837,10 @@ export const WorkspaceApp = ({notebooks.find((notebook) => notebook.id === "nb_inbox" || notebook.slug === "inbox" || notebook.name === "等待分类")?.id ?? null;- const canCreateMemo = Boolean(defaultMemoNotebookId && memoView !== "trash");+ const createMemoNotebookId =+ (selectedNotebookId && notebooks.some((notebook) => notebook.id === selectedNotebookId) ? selectedNotebookId : null) ??+ defaultMemoNotebookId;+ const canCreateMemo = Boolean(createMemoNotebookId && memoView !== "trash");const memoSelectionModeActive = memoSelectionMode || selectedMemoIds.size > 0;const mobileSearchActive = mobileBottomNavActive === "search";const workspaceBackTargetActive = Boolean(@@ -1658,14 +1661,16 @@ export const WorkspaceApp = ({};const handleCreateMemo = (template?: MemoTemplate) => {- if (!defaultMemoNotebookId || memoView === "trash") {+ const targetNotebookId = createMemoNotebookId;++ if (!targetNotebookId || memoView === "trash") {return;}setTemplatesOpen(false);setMobileBottomNavActive("home");createMemoMutation.mutate({- notebookId: defaultMemoNotebookId,+ notebookId: targetNotebookId,title: template?.title ?? "",contentMarkdown: template?.contentMarkdown ?? "",tags: template?.tags ?? [],diff --git a/package.json b/package.jsonindex c094e409..00b2373d 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "edgeever",- "version": "1.5.18",+ "version": "1.5.19","private": true,"type": "module","workspaces": [