Skip to content

Commit

Permalink
fixed setCurrentStop args on modal close
Browse files Browse the repository at this point in the history
  • Loading branch information
hiba9201 committed Sep 3, 2023
1 parent 1b32c76 commit c51917f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/Map/Stops/Item/MapStopsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function MapStopsItem({ type, id, name, coords }: MapStopsItemProps) {
if (currentStop !== id) {
sidebarService.open({
component: <MapStopsSidebar type={type} name={name} />,
onClose: () => dispatch(setCurrentStop(null)),
onClose: () => dispatch(setCurrentStop({ currentStop: null })),
});

dispatch(setCurrentStop({ currentStop: id }));
Expand Down

1 comment on commit c51917f

@ekbdev
Copy link

@ekbdev ekbdev commented on c51917f Sep 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for transport ready!

✅ Preview
https://transport-q7ini0zuv-ekbdev.vercel.app
https://ekbdev-transport-fix-colorful-idle-icons.vercel.app

Built with commit c51917f.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.