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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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}/>