Client - fix activities list style & activity details display
This commit is contained in:
@ -35,8 +35,9 @@ class ActivityCharts extends React.Component {
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (
|
||||
this.props.dataType === 'activity' &&
|
||||
prevProps.activity.id !== this.props.activity.id
|
||||
(this.props.dataType === 'activity' &&
|
||||
prevProps.activity.id !== this.props.activity.id) ||
|
||||
(this.props.dataType === 'activity' && prevProps.dataType === 'segment')
|
||||
) {
|
||||
this.props.loadActivityData(this.props.activity.id)
|
||||
}
|
||||
|
@ -25,8 +25,9 @@ class ActivityMap extends React.Component {
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (
|
||||
this.props.dataType === 'activity' &&
|
||||
prevProps.activity.id !== this.props.activity.id
|
||||
(this.props.dataType === 'activity' &&
|
||||
prevProps.activity.id !== this.props.activity.id) ||
|
||||
(this.props.dataType === 'activity' && prevProps.dataType === 'segment')
|
||||
) {
|
||||
this.props.loadActivityGpx(this.props.activity.id)
|
||||
}
|
||||
|
Reference in New Issue
Block a user