Skip to content

Commit

Permalink
<BRMS-2852> Fixed error reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreel committed Mar 19, 2020
1 parent 84b5b17 commit 9f49b02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/editor/src/import-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ export function ImportComponent(props: ImportComponentProps) {
</Dropzone>
)}
<ImportInfo style={{ color: 'rgb(133, 100, 4)', backgroundColor: 'rgb(255, 243, 205)' }}>
{isDataSet() && !parseResult.valid && parseResult.validationErrors.map((err, i) => err)}
{isDataSet() &&
!parseResult.valid &&
parseResult.validationErrors.map((err, i) => <div>{err}</div>)}
</ImportInfo>
</ImportArea>
<ImportInfo>
Expand Down

0 comments on commit 9f49b02

Please sign in to comment.