feat: 上位タグのバグ修正(#174) (#175)

#174 エラー回避と誤記修正

#174 完了

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #175
This commit was merged in pull request #175.
This commit is contained in:
2025-12-10 20:18:48 +09:00
parent d50a302d26
commit 3b32d4d8ac
4 changed files with 33 additions and 3 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ const renderTagTree = (
</li>)
return [self,
...(tag.children?.flatMap (child => renderTagTree (child, nestLevel + 1, key)) ?? [])]
...(tag.children
?.sort ((a, b) => a.name < b.name ? -1 : 1)
.flatMap (child => renderTagTree (child, nestLevel + 1, key)) ?? [])]
}