Merge remote-tracking branch 'origin/develop' into feat/logs

This commit is contained in:
nityanandagohain 2022-07-18 16:44:27 +05:30
commit 33e7252645
2 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ function PromQLQueryContainer({
}: IPromQLQueryHandleChange): void => { }: IPromQLQueryHandleChange): void => {
const allQueries = queryData[WIDGET_PROMQL_QUERY_KEY_NAME]; const allQueries = queryData[WIDGET_PROMQL_QUERY_KEY_NAME];
const currentIndexQuery = allQueries[queryIndex]; const currentIndexQuery = allQueries[queryIndex];
if (query) currentIndexQuery.query = query; if (query !== undefined) currentIndexQuery.query = query;
if (legend) currentIndexQuery.legend = legend; if (legend !== undefined) currentIndexQuery.legend = legend;
if (toggleDisable) { if (toggleDisable) {
currentIndexQuery.disabled = !currentIndexQuery.disabled; currentIndexQuery.disabled = !currentIndexQuery.disabled;

View File

@ -55,7 +55,7 @@ function QueryBuilderQueryContainer({
currentIndexQuery.aggregateOperator = aggregateFunction; currentIndexQuery.aggregateOperator = aggregateFunction;
} }
if (metricName) { if (metricName !== undefined) {
currentIndexQuery.metricName = metricName; currentIndexQuery.metricName = metricName;
} }