Merge pull request #2942 from bodnia/issue-2890

fixes #2890
This commit is contained in:
Anna
2017-04-20 22:48:06 +02:00
committed by GitHub
4 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"swagger-ui-bundle.js","sources":["webpack:///swagger-ui-bundle.js"],"mappings":"AAAA;AAu/FA;AA6+FA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0dA;;;;;;AAoIA;AAk7FA;AAmtCA;;;;;AA0uIA;AA+4IA;AAs1FA;AAk3GA;AAuoEA;AAk+CA;AA6/CA;AA2rCA;AA24EA;AA66HA;;;;;;;;;;;;;;AA8vGA;AAyoIA;AAiuJA;AA8kHA;AA8mGA;AAokEA;AAi3DA;AA4xDA;AAg4BA;;;;;;AA82EA;;;;;;AAqrBA;AAkoHA;;;;;AAonDA;AA2qFA;AAu2CA;AA4kCA;AAg/CA;AAswEA;AAu8FA;;;;;;;;;AA02BA;AA2zIA;AAk4DA;AAqlDA;AA2pHA","sourceRoot":""}
{"version":3,"file":"swagger-ui-bundle.js","sources":["webpack:///swagger-ui-bundle.js"],"mappings":"AAAA;AAu/FA;AA6+FA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0dA;;;;;;AAoIA;AAk7FA;AAmtCA;;;;;AA0uIA;AA+4IA;AAs1FA;AAk3GA;AAuoEA;AAk+CA;AA6/CA;AA2rCA;AA24EA;AA66HA;;;;;;;;;;;;;;AA8vGA;AAyoIA;AAiuJA;AA8kHA;AA8mGA;AAokEA;AAi3DA;AA4xDA;AAg4BA;;;;;;AA82EA;;;;;;AAqrBA;AAkoHA;;;;;AAonDA;AA2qFA;AAu2CA;AA4kCA;AAg/CA;AAswEA;AAu8FA;;;;;;;;;AA02BA;AA2zIA;AAk4DA;AAolDA;AA4pHA","sourceRoot":""}

2
dist/swagger-ui.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -150,9 +150,9 @@ export class JsonSchema_array extends Component {
(errors.length ? <span style={{ color: "red", fortWeight: "bold" }}>{ errors[0] }</span> : null) :
value.map( (item,i) => {
let schema = Object.assign({}, itemSchema)
let err = errors.filter((err) => err.index === i)
if ( err.length ) {
schema.errors = [ err[0].error + i ]
if ( errors.length ) {
let err = errors.filter((err) => err.index === i)
if (err.length) schema.errors = [ err[0].error + i ]
}
return (
<div key={i} className="json-schema-form-item">