form action redirects user to tjhe appropriate year
This commit is contained in:
@@ -9,5 +9,5 @@ export default async function Page({ params:{ id } }: { params: { id:string } })
|
||||
if (!location) {
|
||||
return(notFound());
|
||||
}
|
||||
return (<LocationEditForm location={location} />);
|
||||
return (<LocationEditForm location={location} yearMonth={location.yearMonth} />);
|
||||
}
|
||||
Reference in New Issue
Block a user