Fix ScheduleEdit page not working directly by url (#3477)

This commit is contained in:
Linux123123
2021-08-03 06:07:39 +03:00
committed by GitHub
parent e8746feb97
commit 9c64fb29a4
2 changed files with 3 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ export default () => {
css={tw`cursor-pointer mb-2 flex-wrap`}
onClick={(e: any) => {
e.preventDefault();
history.push(`${match.url}/${schedule.id}`, { schedule });
history.push(`${match.url}/${schedule.id}`);
}}
>
<ScheduleRow schedule={schedule}/>