Commit 200a0d3e authored by Steven's avatar Steven

fix: memo relations

parent ea662806
...@@ -34,7 +34,7 @@ const AddMemoRelationButton = (props: Props) => { ...@@ -34,7 +34,7 @@ const AddMemoRelationButton = (props: Props) => {
editorRef.current.insertText("\n"); editorRef.current.insertText("\n");
} }
for (const memo of memos) { for (const memo of memos) {
editorRef.current.insertText(`![[memos/${memo.name}]]\n`); editorRef.current.insertText(`![[memos/${memo.uid}]]\n`);
} }
setTimeout(() => { setTimeout(() => {
editorRef.current?.scrollToCursor(); editorRef.current?.scrollToCursor();
......
...@@ -43,7 +43,7 @@ const MemoRelationListView = (props: Props) => { ...@@ -43,7 +43,7 @@ const MemoRelationListView = (props: Props) => {
<div key={memo.name} className="block w-auto max-w-[50%]"> <div key={memo.name} className="block w-auto max-w-[50%]">
<Link <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" 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 unstable_viewTransition
> >
<Tooltip title="Reference" placement="top"> <Tooltip title="Reference" placement="top">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment