fix: memo relations

pull/3162/head
Steven 1 year ago
parent ea6628066d
commit 200a0d3e2b

@ -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) => {
<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">

Loading…
Cancel
Save