diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_alert_types/threshold/expression.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_alert_types/threshold/expression.tsx index 96513f0563ad0..fb8ae4bfd078a 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_alert_types/threshold/expression.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_alert_types/threshold/expression.tsx @@ -293,12 +293,12 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent 0 ? index.join(' ') : firstFieldOption.text} isActive={indexPopoverOpen} onClick={() => { setIndexPopoverOpen(true); }} - color={index ? 'secondary' : 'danger'} + color={index && index.length > 0 ? 'secondary' : 'danger'} /> } isOpen={indexPopoverOpen}