mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
fix: error alerts js crash (#17015)
This commit is contained in:
@@ -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