Skip to content

Commit

Permalink
fix: Required native filter message wrongfully appearing (#29643)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Jul 19, 2024
1 parent 5539f87 commit 9487d6c
Showing 1 changed file with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,31 +675,33 @@ const DashboardBuilder: FC<DashboardBuilderProps> = () => {
editMode={editMode}
marginLeft={dashboardContentMarginLeft}
>
{missingInitialFilters.length > 0 ? (
<div
css={css`
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
flex: 1;
& div {
width: 500px;
}
`}
>
<BasicErrorAlert
title={t('Unable to load dashboard')}
body={t(
`The following filters have the 'Select first filter value by default'
{showDashboard ? (
missingInitialFilters.length > 0 ? (
<div
css={css`
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
flex: 1;
& div {
width: 500px;
}
`}
>
<BasicErrorAlert
title={t('Unable to load dashboard')}
body={t(
`The following filters have the 'Select first filter value by default'
option checked and could not be loaded, which is preventing the dashboard
from rendering: %s`,
missingInitialFilters.join(', '),
)}
/>
</div>
) : showDashboard ? (
<DashboardContainer topLevelTabs={topLevelTabs} />
missingInitialFilters.join(', '),
)}
/>
</div>
) : (
<DashboardContainer topLevelTabs={topLevelTabs} />
)
) : (
<Loading />
)}
Expand Down

0 comments on commit 9487d6c

Please sign in to comment.