We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b15c6b2 commit 1f76eeaCopy full SHA for 1f76eea
1 file changed
x-pack/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx
@@ -257,7 +257,8 @@ export const Editor: React.FC<
257
258
const shouldShowGroupByOptimizationWarning = useMemo(() => {
259
const hasSetGroupBy = alertParams.groupBy && alertParams.groupBy.length > 0;
260
- const hasSetOptimizableThresholdComparator = alertParams.count.comparator === Comparator.GT;
+ const hasSetOptimizableThresholdComparator =
261
+ alertParams.count && alertParams.count.comparator === Comparator.GT;
262
return hasSetGroupBy && !hasSetOptimizableThresholdComparator;
263
}, [alertParams]);
264
0 commit comments