Unverified Commit 93ae3517 authored by Srikanth Chekuri's avatar Srikanth Chekuri Committed by GitHub
Browse files

Merge branch 'develop' into issue-1252

No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
......@@ -30,8 +30,8 @@ function PromQLQueryContainer({
}: IPromQLQueryHandleChange): void => {
const allQueries = queryData[WIDGET_PROMQL_QUERY_KEY_NAME];
const currentIndexQuery = allQueries[queryIndex];
if (query) currentIndexQuery.query = query;
if (legend) currentIndexQuery.legend = legend;
if (query !== undefined) currentIndexQuery.query = query;
if (legend !== undefined) currentIndexQuery.legend = legend;
if (toggleDisable) {
currentIndexQuery.disabled = !currentIndexQuery.disabled;
......
......@@ -55,7 +55,7 @@ function QueryBuilderQueryContainer({
currentIndexQuery.aggregateOperator = aggregateFunction;
}
if (metricName) {
if (metricName !== undefined) {
currentIndexQuery.metricName = metricName;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment