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