@@ -8,14 +8,14 @@ import {Link} from 'react-router'
8
8
import ManagerPage from '../../common/components/ManagerPage'
9
9
import OptionButton from '../../common/components/OptionButton'
10
10
import * as gtfsPlusActions from '../actions/gtfsplus'
11
- import GtfsPlusTable from './GtfsPlusTable'
12
11
import { getGtfsPlusSpec } from '../../common/util/config'
13
12
import * as feedsActions from '../../manager/actions/feeds'
14
-
15
13
import type { Props as ContainerProps } from '../containers/ActiveGtfsPlusEditor'
16
- import type { Feed , FeedVersion , GtfsPlusValidation , Project } from '../../types'
14
+ import type { Feed , FeedVersionSummary , GtfsPlusValidation , Project } from '../../types'
17
15
import type { ManagerUserState } from '../../types/reducers'
18
16
17
+ import GtfsPlusTable from './GtfsPlusTable'
18
+
19
19
export type Props = ContainerProps & {
20
20
activeTableId : string ,
21
21
addGtfsPlusRow : typeof gtfsPlusActions . addGtfsPlusRow ,
@@ -24,8 +24,8 @@ export type Props = ContainerProps & {
24
24
downloadGtfsPlusFeed : typeof gtfsPlusActions . downloadGtfsPlusFeed ,
25
25
feedSource : Feed ,
26
26
feedSourceId : string ,
27
- feedVersion : FeedVersion ,
28
27
feedVersionId : string ,
28
+ feedVersionSummary : FeedVersionSummary ,
29
29
fetchFeedSourceAndProject : typeof feedsActions . fetchFeedSourceAndProject ,
30
30
gtfsEntityLookup : Object ,
31
31
loadGtfsEntities : typeof gtfsPlusActions . loadGtfsEntities ,
@@ -100,8 +100,8 @@ export default class GtfsPlusEditor extends Component<Props> {
100
100
_getGtfsEntity = ( type : string , id : string ) = > this . props . gtfsEntityLookup [ `${ type } _${ id } ` ]
101
101
102
102
_newRowsDisplayed = ( rows : Array < any > ) => {
103
- const { activeTableId, feedVersion , loadGtfsEntities, validation} = this . props
104
- if ( feedVersion ) loadGtfsEntities ( activeTableId , rows , feedVersion , validation )
103
+ const { activeTableId, feedVersionSummary , loadGtfsEntities, validation} = this . props
104
+ if ( feedVersionSummary ) loadGtfsEntities ( activeTableId , rows , feedVersionSummary , validation )
105
105
}
106
106
107
107
_selectTable = ( activeTableId : string ) => this . props . setActiveTable ( { activeTableId} )
@@ -127,7 +127,7 @@ export default class GtfsPlusEditor extends Component<Props> {
127
127
const {
128
128
activeTableId ,
129
129
feedSource,
130
- feedVersion ,
130
+ feedVersionSummary ,
131
131
project,
132
132
tableData,
133
133
user,
@@ -157,7 +157,7 @@ export default class GtfsPlusEditor extends Component<Props> {
157
157
< li > < Link to = '/' > Explore</ Link > </ li >
158
158
< li > < Link to = '/project' > Projects</ Link > </ li >
159
159
< li > < Link to = { `/project/${ project . id } ` } > { project . name } </ Link > </ li >
160
- < li > < Link to = { `/feed/${ feedSource . id } /version/${ feedVersion . version } /gtfsplus` } > { feedSource . name } </ Link > </ li >
160
+ < li > < Link to = { `/feed/${ feedSource . id } /version/${ feedVersionSummary . version } /gtfsplus` } > { feedSource . name } </ Link > </ li >
161
161
< li className = 'active' > Edit GTFS+</ li >
162
162
</ ul >
163
163
</ Col >
0 commit comments