Skip to content

Commit

Permalink
convert insetupmode to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
estermv committed Oct 15, 2021
1 parent 852d8f3 commit 4ab1faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/public/alerts/badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const AlertsBadge: React.FC<Props> = (props: Props) => {
const groupByType = GROUP_BY_NODE;
const panels = showByNode
? getAlertPanelsByNode(PANEL_TITLE, alerts, stateFilter)
: getAlertPanelsByCategory(PANEL_TITLE, inSetupMode, alerts, stateFilter);
: getAlertPanelsByCategory(PANEL_TITLE, !!inSetupMode, alerts, stateFilter);
if (panels.length && !inSetupMode && panels[0].items) {
panels[0].items.push(
...[
Expand Down

0 comments on commit 4ab1faa

Please sign in to comment.