We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bbf86e commit 2971048Copy full SHA for 2971048
frontend/src/Board/BoardList.tsx
@@ -56,8 +56,9 @@ function BoardList() {
56
}
57
const data: ApiResponse = await response.json();
58
59
- // results配列をそのままセット
60
- setRounds(data.results);
+ const sortedRounds = data.results.sort((a, b) => b.id - a.id);
+ setRounds(sortedRounds);
61
+ // results配列を降順にセット
62
} catch (error) {
63
console.error("ラウンド一覧の取得に失敗しました:", error);
64
setFetchError(true);
0 commit comments