fix: error alerts js crash (#17015)
This commit is contained in:
parent
50ad09bbdc
commit
03cdbac8bb
|
|
@ -58,7 +58,7 @@ export default function BasicErrorAlert({
|
|||
|
||||
return (
|
||||
<StyledContainer level={level} role="alert">
|
||||
{level === 'error' ? (
|
||||
{!level || level === 'error' ? (
|
||||
<Icons.ErrorSolid iconColor={theme.colors[level].base} />
|
||||
) : (
|
||||
<Icons.WarningSolid iconColor={theme.colors[level].base} />
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ export default function ErrorAlert({
|
|||
<ErrorAlertDiv level={level} role="alert">
|
||||
<div className="top-row">
|
||||
<LeftSideContent>
|
||||
{level === 'error' ? (
|
||||
{!level || level === 'error' ? (
|
||||
<Icons.ErrorSolid
|
||||
className="icon"
|
||||
iconColor={theme.colors[level].base}
|
||||
|
|
@ -171,7 +171,7 @@ export default function ErrorAlert({
|
|||
onHide={() => setIsModalOpen(false)}
|
||||
title={
|
||||
<div className="header">
|
||||
{level === 'error' ? (
|
||||
{!level || level === 'error' ? (
|
||||
<Icons.ErrorSolid
|
||||
className="icon"
|
||||
iconColor={theme.colors[level].base}
|
||||
|
|
|
|||
Loading…
Reference in New Issue