mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Only attempt to display sting error messages in ErrorDetail
This commit is contained in:
@@ -64,9 +64,9 @@ class ErrorDetail extends Component {
|
||||
<CardBody>
|
||||
{Array.isArray(message) ? (
|
||||
<ul>
|
||||
{message.map(m => (
|
||||
<li key={m}>{m}</li>
|
||||
))}
|
||||
{message.map(m =>
|
||||
typeof m === 'string' ? <li key={m}>{m}</li> : null
|
||||
)}
|
||||
</ul>
|
||||
) : (
|
||||
message
|
||||
|
||||
Reference in New Issue
Block a user