[Metrics UI] Fix removing warning threshold from alert expressions (#93338)
This commit is contained in:
parent
f5e8b108da
commit
dc6d0b7910
2 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ export const Expressions: React.FC<Props> = (props) => {
|
|||
const updateParams = useCallback(
|
||||
(id, e: InventoryMetricConditions) => {
|
||||
const exp = alertParams.criteria ? alertParams.criteria.slice() : [];
|
||||
exp[id] = { ...exp[id], ...e };
|
||||
exp[id] = e;
|
||||
setAlertParams('criteria', exp);
|
||||
},
|
||||
[setAlertParams, alertParams.criteria]
|
||||
|
|
|
@ -98,7 +98,7 @@ export const Expressions: React.FC<Props> = (props) => {
|
|||
const updateParams = useCallback(
|
||||
(id, e: MetricExpression) => {
|
||||
const exp = alertParams.criteria ? alertParams.criteria.slice() : [];
|
||||
exp[id] = { ...exp[id], ...e };
|
||||
exp[id] = e;
|
||||
setAlertParams('criteria', exp);
|
||||
},
|
||||
[setAlertParams, alertParams.criteria]
|
||||
|
|
Loading…
Reference in a new issue