forms: gotoHome activating previously active month

This commit is contained in:
2024-02-01 14:38:26 +01:00
parent f71098d9e8
commit a1abc450bf
3 changed files with 3 additions and 4 deletions

View File

@@ -24,8 +24,7 @@ export const LocationEditForm:FC<LocationEditFormProps> = ({ location, yearMonth
// redirect to the main page
const handleCancel = () => {
console.log('handleCancel');
gotoHome(location ? `/?year=${location?.yearMonth?.year}` : undefined);
gotoHome(location ? `/?year=${location?.yearMonth?.year}&month=${location?.yearMonth?.month}` : undefined);
};
return(