Skip to content

Commit efcc0a1

Browse files
yuito-itCopilot
andauthored
Update src/client/components/SidebarArticles.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2612b40 commit efcc0a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/components/SidebarArticles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const SidebarArticles = ({ items, sortType, articleState }: Props) => {
116116
.sort((a, b) => a.name.localeCompare(b.name))
117117
.map((child) => renderNode(child, `${path}/${child.name}`))}
118118

119-
{node.items.sort(cmp).map((item) => (
119+
{[...node.items].sort(cmp).map((item) => (
120120
<li key={item.items_show_path}>
121121
<Link css={articlesListItemStyle} to={item.items_show_path}>
122122
<MaterialSymbol

0 commit comments

Comments
 (0)