27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
|
|
From 387ce84da12f33c64d179d7e2582124ae952091f Mon Sep 17 00:00:00 2001
|
||
|
|
From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com>
|
||
|
|
Date: Fri, 17 Jul 2026 11:31:05 +0800
|
||
|
|
Subject: [PATCH] fix: resolve links inside mounted workspaces
|
||
|
|
|
||
|
|
---
|
||
|
|
src/components/SingleEditorView.tsx | 3 ++-
|
||
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/src/components/SingleEditorView.tsx b/src/components/SingleEditorView.tsx
|
||
|
|
index 0440e5a..a0e2dc8 100644
|
||
|
|
--- a/src/components/SingleEditorView.tsx
|
||
|
|
+++ b/src/components/SingleEditorView.tsx
|
||
|
|
@@ -1208,7 +1208,8 @@ export function SingleEditorView({ editor, entries, onNavigateWikilink, onChange
|
||
|
|
handleMouseMove: handleCodeBlockCopyMouseMove,
|
||
|
|
} = useCodeBlockCopyTarget(containerRef)
|
||
|
|
useBlockNoteSideMenuHoverGuard(containerRef)
|
||
|
|
- useEditorLinkActivation(containerRef, onNavigateWikilink, vaultPath, sourceEntry?.path)
|
||
|
|
+ const sourceVaultPath = sourceEntry?.workspace?.path ?? vaultPath
|
||
|
|
+ useEditorLinkActivation(containerRef, onNavigateWikilink, sourceVaultPath, sourceEntry?.path)
|
||
|
|
|
||
|
|
useEffect(() => {
|
||
|
|
_wikilinkEntriesRef.current = entries
|
||
|
|
--
|
||
|
|
2.50.1 (Apple Git-155)
|
||
|
|
|