mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
fix: error alerts js crash (#17015)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user