Skip to content

Commit 2612b40

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

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
@@ -149,7 +149,7 @@ export const SidebarArticles = ({ items, sortType, articleState }: Props) => {
149149
.map((r) => renderNode(r, r.name))}
150150

151151
{topLevelItems.length > 0 &&
152-
topLevelItems.sort(compare[sortType]).map((item) => (
152+
[...topLevelItems].sort(compare[sortType]).map((item) => (
153153
<li key={item.items_show_path}>
154154
<Link css={articlesListItemStyle} to={item.items_show_path}>
155155
<MaterialSymbol

0 commit comments

Comments
 (0)