Skip to content

Commit bd14749

Browse files
fix(GtfsPlusVersionSummary): Address PR comments
1 parent 4c3f49f commit bd14749

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lib/gtfsplus/components/GtfsPlusVersionSummary.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,12 @@ import {
1515
import {browserHistory, Link} from 'react-router'
1616

1717
import * as gtfsPlusActions from '../actions/gtfsplus'
18+
1819
import {getGtfsPlusSpec} from '../../common/util/config'
1920
import type {Props as ContainerProps} from '../containers/ActiveGtfsPlusVersionSummary'
21+
import type {GtfsPlusValidationIssue} from '../../types'
2022
import type {GtfsPlusReducerState, ManagerUserState} from '../../types/reducers'
2123

22-
type Issue = {
23-
description: string,
24-
fieldName: string,
25-
rowIndex: number,
26-
tableId: string
27-
}
28-
2924
type Props = ContainerProps & {
3025
deleteGtfsPlusFeed: typeof gtfsPlusActions.deleteGtfsPlusFeed,
3126
downloadGtfsPlusFeed: typeof gtfsPlusActions.downloadGtfsPlusFeed,
@@ -66,7 +61,7 @@ export default class GtfsPlusVersionSummary extends Component<Props, State> {
6661
return issuesForTable[tableId].length.toLocaleString()
6762
}
6863

69-
_getTableLevelIssues = (tableId: string): ?Array<Issue> => {
64+
_getTableLevelIssues = (tableId: string): ?Array<GtfsPlusValidationIssue> => {
7065
const {issuesForTable} = this.props
7166
if (!issuesForTable) return null
7267
if (!(tableId in issuesForTable)) return null

0 commit comments

Comments
 (0)