File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
x-pack/plugins/infra/public/alerting
metric_threshold/components Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export const Expressions: React.FC<Props> = (props) => {
137137 const updateParams = useCallback (
138138 ( id , e : InventoryMetricConditions ) => {
139139 const exp = alertParams . criteria ? alertParams . criteria . slice ( ) : [ ] ;
140- exp [ id ] = { ... exp [ id ] , ... e } ;
140+ exp [ id ] = e ;
141141 setAlertParams ( 'criteria' , exp ) ;
142142 } ,
143143 [ setAlertParams , alertParams . criteria ]
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export const Expressions: React.FC<Props> = (props) => {
9898 const updateParams = useCallback (
9999 ( id , e : MetricExpression ) => {
100100 const exp = alertParams . criteria ? alertParams . criteria . slice ( ) : [ ] ;
101- exp [ id ] = { ... exp [ id ] , ... e } ;
101+ exp [ id ] = e ;
102102 setAlertParams ( 'criteria' , exp ) ;
103103 } ,
104104 [ setAlertParams , alertParams . criteria ]
You can’t perform that action at this time.
0 commit comments