mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 04:39:01 +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 => {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user