mirror of
https://github.com/usememos/memos.git
synced 2025-03-28 00:20:13 +01:00
fix: memo relations
This commit is contained in:
parent
ea6628066d
commit
200a0d3e2b
@ -34,7 +34,7 @@ const AddMemoRelationButton = (props: Props) => {
|
||||
editorRef.current.insertText("\n");
|
||||
}
|
||||
for (const memo of memos) {
|
||||
editorRef.current.insertText(`![[memos/${memo.name}]]\n`);
|
||||
editorRef.current.insertText(`![[memos/${memo.uid}]]\n`);
|
||||
}
|
||||
setTimeout(() => {
|
||||
editorRef.current?.scrollToCursor();
|
||||
|
@ -43,7 +43,7 @@ const MemoRelationListView = (props: Props) => {
|
||||
<div key={memo.name} className="block w-auto max-w-[50%]">
|
||||
<Link
|
||||
className="px-2 border rounded-md w-auto text-sm leading-6 flex flex-row justify-start items-center flex-nowrap text-gray-600 dark:text-gray-400 dark:border-zinc-700 dark:bg-zinc-900 hover:shadow hover:opacity-80"
|
||||
to={`/m/${memo.name}`}
|
||||
to={`/m/${memo.uid}`}
|
||||
unstable_viewTransition
|
||||
>
|
||||
<Tooltip title="Reference" placement="top">
|
||||
|
Loading…
x
Reference in New Issue
Block a user