Skip to content

Commit 2971048

Browse files
committed
共有ストーリーを降順
1 parent 2bbf86e commit 2971048

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/src/Board/BoardList.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ function BoardList() {
5656
}
5757
const data: ApiResponse = await response.json();
5858

59-
// results配列をそのままセット
60-
setRounds(data.results);
59+
const sortedRounds = data.results.sort((a, b) => b.id - a.id);
60+
setRounds(sortedRounds);
61+
// results配列を降順にセット
6162
} catch (error) {
6263
console.error("ラウンド一覧の取得に失敗しました:", error);
6364
setFetchError(true);

0 commit comments

Comments
 (0)