cern-sis / issues-inspire

0 stars 0 forks source link

Validation error display in editor #383

Open karolina-siemieniuk-morawska opened 1 year ago

karolina-siemieniuk-morawska commented 1 year ago

When I am trying to save a record with invalid document input there's an error on console but no error for editor user:

Subscriber.js:247 Uncaught TypeError: Cannot read properties of undefined (reading 'errors')
    at e.setValidationProblems (editor-error-converter.service.ts:45)
    at l.onSaveError (record-toolbar.component.ts:159)
    at e._error (record-toolbar.component.ts:146)

Moved from: https://github.com/inspirehep/inspirehep/issues/2329