refactoring: changing param list of a fn
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user