Skip to content

Commit

Permalink
Fix when stops missing
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed May 17, 2024
1 parent 9181baa commit dc8cf1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nextjs/contexts/FrontendLinesContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function FrontendLinesContextProvider({ children }) {
// ---------

const selectPattern = useCallback((routeData, patternData) => {
setEntitiesState(prev => ({ ...prev, route: routeData, pattern: patternData, stop: patternData.path[0].stop, stop_sequence: patternData.path[0].stop_sequence }));
setEntitiesState(prev => ({ ...prev, route: routeData, pattern: patternData, stop: patternData.path[0]?.stop, stop_sequence: patternData.path[0]?.stop_sequence }));
setMapState(prev => ({ ...prev, auto_zoom: true }));
}, []);

Expand Down
2 changes: 1 addition & 1 deletion nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carrismetropolitana/website",
"version": "2024.04.19-1241",
"version": "2024.05.17-1230",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

0 comments on commit dc8cf1f

Please sign in to comment.