refactoring: changing param list of a fn

This commit is contained in:
2024-02-01 15:07:30 +01:00
parent a1abc450bf
commit 2261e83715
8 changed files with 26 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ export default async function Page({ params:{ id } }: { params: { id:string } })
const { year, month } = parseYearMonth(id);
await addMonth({ year, month });
await gotoHome(`/?year=${year}`);
await gotoHome({ year, month });
return null; // if we don't return anything, the client-side will not re-validate cache
}