fix: memo comment keys

This commit is contained in:
Steven 2024-04-25 09:10:11 +08:00
parent 9bcd4f59a2
commit 81d24f32a7
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -92,7 +92,7 @@ const MemoDetail = () => {
/>
<div className="pt-8 pb-16 w-full">
<h2 id="comments" className="sr-only">
Comments
{t("memo.comment.self")}
</h2>
<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 ? (
@ -108,7 +108,7 @@ const MemoDetail = () => {
<span className="text-gray-400 text-sm ml-0.5">({comments.length})</span>
</div>
{comments.map((comment) => (
<MemoView key={`${memo.name}-${memo.displayTime}`} memo={comment} showCreator />
<MemoView key={`${comment.name}-${comment.displayTime}`} memo={comment} showCreator />
))}
</>
)}