mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 20:29:04 +08:00
fix: query builder update legend on empty values (#1367)
This commit is contained in:
parent
80c80b2180
commit
4ee92b7c55
@ -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;
|
||||||
|
@ -55,7 +55,7 @@ function QueryBuilderQueryContainer({
|
|||||||
currentIndexQuery.aggregateOperator = aggregateFunction;
|
currentIndexQuery.aggregateOperator = aggregateFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (metricName) {
|
if (metricName !== undefined) {
|
||||||
currentIndexQuery.metricName = metricName;
|
currentIndexQuery.metricName = metricName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user