mirror of
https://github.com/apache/superset.git
synced 2026-08-05 21:42:48 +00:00
test: ErrorMessage components tests (#13358)
* Add tests for ErrorAlert * Add BasicErrorAlert tests * Add DatabaseErrorMessage tests * Add useRedux property * Finalize DatabaseErrorMessage tests * Add ErrorMessageWithStackTrace tests * Move getErrorMessageComponentRegistry test to dedicated directory * Clean up getErrorMessageComponentRegistry * Add IssueCode tests * Add tests for ParameterErrorMessage * Add tests for TimeoutErrorMessage * Fix linting issue
This commit is contained in:
@@ -46,7 +46,9 @@ function DatabaseErrorMessage({
|
||||
{t('This may be triggered by:')}
|
||||
<br />
|
||||
{extra.issue_codes
|
||||
.map<React.ReactNode>(issueCode => <IssueCode {...issueCode} />)
|
||||
.map<React.ReactNode>(issueCode => (
|
||||
<IssueCode {...issueCode} key={issueCode.code} />
|
||||
))
|
||||
.reduce((prev, curr) => [prev, <br />, curr])}
|
||||
</p>
|
||||
{isVisualization && extra.owners && (
|
||||
|
||||
Reference in New Issue
Block a user