scroll to top bug fix

This commit is contained in:
Owen Rees
2023-06-21 09:47:40 +02:00
parent cb2b8ab5e9
commit 5fd8b35762
5 changed files with 52 additions and 33 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export async function GET() {
const db = client.db("tournamentsFranceDB");
const results = await dateOrderingFrance(db);
const data = results.map(({ _id, __v, ...rest }) => ({
const data = results.map(({ _id, ...rest }) => ({
id: _id,
...rest,
}));