Skip to content

Commit

Permalink
Merge pull request #60 from HSLdevcom/development
Browse files Browse the repository at this point in the history
175 missing notes fix
  • Loading branch information
ahjyrkia authored Nov 9, 2020
2 parents 058d708 + 012cc10 commit c1876d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ class Map extends React.Component {
this.props.mapProps.forEach((props) => {
routes = routes.concat(props.lineRoutes);
});

const lines = this.props.mapProps.map((props) => {
return {
transportType: props.transportType,
lineNumber: props.lineNumber,
lineNameFi: props.lineNameFi,
routes: props.lineRoutes,
notes: props.notes,
};
});

Expand All @@ -76,7 +76,7 @@ class Map extends React.Component {
isFullScreen={this.state.isFullScreen}
toggleChecked={this.routeFilterItemToggleChecked}
toggleFilter={this.routeFilterToggleFilter}
notes={this.props.notes}
notes={lines.notes}
setMapCenter={this.setMapCenter}
/>
<MapLeaflet
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Sidebar = (props) => {
setMapCenter={props.setMapCenter}
/>
</div>
<Notes notes={props.notes} />
<Notes notes={line.notes} />
</div>
);
})}
Expand Down

0 comments on commit c1876d1

Please sign in to comment.