src/components/ValidationMessages.js
//TODO: split this into two separate validation messages and validation errors component
split this into two separate validation messages and validation errors component
split this into two separate validation messages and validation errors component
function ValidationMessagesController() {
  this.errorMessages = function(messages) {
    return messages && messages.filter(a => typeof a.dataPath !== 'undefined');
  };
  this.simpleMessages = function(messages) {
    return messages && messages.filter(a => typeof a.dataPath === 'undefined');
  }
}
function ValidationMessagesController ( ) { this . errorMessages = function ( messages ) { return messages && messages . filter ( a => typeof a . dataPath !== 'undefined' ) ; } ; this . simpleMessages = function ( messages ) { return messages && messages . filter ( a => typeof a . dataPath === 'undefined' ) ; } }
TODO: split this into two separate validation messages and validation errors component
TODO : split this into two separate validation messages and validation errors component
// Only the "error" messages // Only "simple" messages