From ce0c1f0b0ba5a2f021dded52332eb1b02b69a4d8 Mon Sep 17 00:00:00 2001 From: Virginia Cepeda Date: Tue, 30 May 2023 10:52:21 -0300 Subject: [PATCH] Alerting: Prevent assigning duplicated query/expression names (#68664) Prevent assigning duplicate query/expression names --- .../alerting/unified/components/rule-editor/QueryRows.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/QueryRows.tsx b/public/app/features/alerting/unified/components/rule-editor/QueryRows.tsx index 60acdd0011a..1043482850b 100644 --- a/public/app/features/alerting/unified/components/rule-editor/QueryRows.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/QueryRows.tsx @@ -181,7 +181,7 @@ export class QueryRows extends PureComponent { query={query} onChangeQuery={this.onChangeQuery} onRemoveQuery={this.onRemoveQuery} - queries={queries} + queries={[...queries, ...expressions]} onChangeDataSource={this.onChangeDataSource} onDuplicateQuery={this.props.onDuplicateQuery} onChangeTimeRange={this.onChangeTimeRange}