Skip to content

Commit

Permalink
GKN-262: Open the first sector by default
Browse files Browse the repository at this point in the history
  • Loading branch information
levenkov committed Jul 23, 2020
1 parent 9b20d00 commit 4046523
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/v2/components/spots/SpotsBlock/SpotsBlock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class SpotsBlock extends React.PureComponent {
}}
onSpotClicked={
(spot_id) => {
this.props.history.push(`/spots/${spot_id}`);
this.props.history.push(
`/spots/${spot_id}/sectors/${this.props.spots[spot_id].sectors[0].id}`,
);
}
}
/>
Expand Down

0 comments on commit 4046523

Please sign in to comment.