This commit is contained in:
Fine 2024-11-13 16:22:08 +08:00
parent 64c541a15c
commit 75534fbc29
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ limitations under the License. -->
async function setLegend() { async function setLegend() {
updateSettings(); updateSettings();
const expression = dashboardStore.selectedGrid.legendMQE && dashboardStore.selectedGrid.legendMQE.expression; const expression = dashboardStore.selectedGrid.legendMQE && dashboardStore.selectedGrid.legendMQE.expression;
const { getExpressionQuery } = await useQueryTopologyExpressionsProcessor( const { getExpressionQuery } = useQueryTopologyExpressionsProcessor(
[expression], [expression],
topologyStore.nodes.filter((d: Node) => d.isReal), topologyStore.nodes.filter((d: Node) => d.isReal),
); );

View File

@ -285,7 +285,7 @@ limitations under the License. -->
if (!expression) { if (!expression) {
return; return;
} }
const { getExpressionQuery } = await useQueryTopologyExpressionsProcessor( const { getExpressionQuery } = useQueryTopologyExpressionsProcessor(
[expression], [expression],
topologyStore.nodes.filter((d: Node) => d.isReal), topologyStore.nodes.filter((d: Node) => d.isReal),
); );