mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Metrics Alerts] Fix saving doc count alerts(#63750)
This commit is contained in:
parent
2af91b3c51
commit
980e58e5fa
1 changed files with 5 additions and 1 deletions
|
@ -378,7 +378,11 @@ export const ExpressionRow: React.FC<ExpressionRowProps> = props => {
|
|||
|
||||
const updateAggType = useCallback(
|
||||
(at: string) => {
|
||||
setAlertParams(expressionId, { ...expression, aggType: at as MetricExpression['aggType'] });
|
||||
setAlertParams(expressionId, {
|
||||
...expression,
|
||||
aggType: at as MetricExpression['aggType'],
|
||||
metric: at === 'count' ? undefined : expression.metric,
|
||||
});
|
||||
},
|
||||
[expressionId, expression, setAlertParams]
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue