File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export class ValidationSummaryTable extends Component {
55
55
const {
56
56
version
57
57
} = this . props
58
+ // FIXME NPE on validationresult error_counts?
58
59
if ( version && version . validationResult && version . validationResult . error_counts . length === 0 ) {
59
60
return < div className = 'lead text-center ' > No validation issues found.</ div >
60
61
} else if ( ! version || ! version . validationResult ) {
Original file line number Diff line number Diff line change @@ -199,13 +199,15 @@ class VersionSectionSelector extends Component {
199
199
200
200
_renderIssuesLabel ( version ) {
201
201
const tableFatalExceptions = getTableFatalExceptions ( version )
202
- const hasCriticalError = version . validationSummary . loadStatus !== 'SUCCESS' ||
203
- version . feedLoadResult . fatalException || tableFatalExceptions . length > 0
202
+ const { validationSummary, feedLoadResult} = version
203
+ const hasCriticalError = validationSummary . loadStatus !== 'SUCCESS' ||
204
+ ! feedLoadResult || feedLoadResult . fatalException ||
205
+ tableFatalExceptions . length > 0
204
206
const color = this . props . validationJob
205
207
? 'warning'
206
208
: hasCriticalError
207
209
? 'danger'
208
- : version . validationSummary . errorCount
210
+ : validationSummary . errorCount
209
211
? 'warning'
210
212
: 'success'
211
213
const text = this . props . validationJob
You can’t perform that action at this time.
0 commit comments