fix: memo comment keys

pull/3287/head
Steven 10 months ago
parent 9bcd4f59a2
commit 81d24f32a7

@ -363,7 +363,6 @@
"syscall/js.finalizeRef": (v_ref) => { "syscall/js.finalizeRef": (v_ref) => {
// Note: TinyGo does not support finalizers so this should never be // Note: TinyGo does not support finalizers so this should never be
// called. // called.
console.warn("syscall/js.finalizeRef not implemented");
}, },
// func stringVal(value string) ref // func stringVal(value string) ref

@ -92,7 +92,7 @@ const MemoDetail = () => {
/> />
<div className="pt-8 pb-16 w-full"> <div className="pt-8 pb-16 w-full">
<h2 id="comments" className="sr-only"> <h2 id="comments" className="sr-only">
Comments {t("memo.comment.self")}
</h2> </h2>
<div className="relative mx-auto flex-grow w-full min-h-full flex flex-col justify-start items-start gap-y-1"> <div className="relative mx-auto flex-grow w-full min-h-full flex flex-col justify-start items-start gap-y-1">
{comments.length === 0 ? ( {comments.length === 0 ? (
@ -108,7 +108,7 @@ const MemoDetail = () => {
<span className="text-gray-400 text-sm ml-0.5">({comments.length})</span> <span className="text-gray-400 text-sm ml-0.5">({comments.length})</span>
</div> </div>
{comments.map((comment) => ( {comments.map((comment) => (
<MemoView key={`${memo.name}-${memo.displayTime}`} memo={comment} showCreator /> <MemoView key={`${comment.name}-${comment.displayTime}`} memo={comment} showCreator />
))} ))}
</> </>
)} )}

Loading…
Cancel
Save