Skip to content

Commit 5f0b560

Browse files
Merge pull request #140 from ckannon/master
Fix: Bad Transpile to es5 in 0.6.0-alpha.2
2 parents 517a819 + 6f98adb commit 5f0b560

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/src/json-schema-form.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,7 @@ export class JsonSchemaFormService {
466466
return Object.keys(errors)
467467
// Hide 'required' error, unless it is the only one
468468
.filter(errorKey => errorKey !== 'required' || Object.keys(errors).length === 1)
469-
.map(errorKey =>
470-
// If custom error message is a function, return result
471-
typeof errorMessages[errorKey] === 'function' ?
469+
.map(errorKey => typeof errorMessages[errorKey] === 'function' ? // If custom error message is a function, return result
472470
errorMessages[errorKey](errors[errorKey]) :
473471
// If custom error message is a string, replace placeholders and return
474472
typeof errorMessages[errorKey] === 'string' ?

0 commit comments

Comments
 (0)