From 4269ff20616e81eb4617e310c123a8ca4d228069 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 22 Aug 2024 11:16:14 +0800 Subject: [PATCH] fix: name --- src/hooks/useExpressionsProcessor.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hooks/useExpressionsProcessor.ts b/src/hooks/useExpressionsProcessor.ts index 6cddcfa1..c0a951a6 100644 --- a/src/hooks/useExpressionsProcessor.ts +++ b/src/hooks/useExpressionsProcessor.ts @@ -25,7 +25,7 @@ import type { Instance, Endpoint, Service } from "@/types/selector"; import type { Node, Call } from "@/types/topology"; export async function useDashboardQueryProcessor(configArr: Indexable[]) { - function expressionsGraphqlPods(config: Indexable, idx: number) { + function expressionsGraphql(config: Indexable, idx: number) { if (!(config.metrics && config.metrics[0])) { return; } @@ -87,7 +87,6 @@ export async function useDashboardQueryProcessor(configArr: Indexable[]) { conditions, }; } - function expressionsSource(config: Indexable, resp: { errors: string; data: Indexable | any }) { if (resp.errors) { ElMessage.error(resp.errors); @@ -144,7 +143,7 @@ export async function useDashboardQueryProcessor(configArr: Indexable[]) { duration: appStore.durationTime, }; for (let i = 0; i < configArr.length; i++) { - const params = await expressionsGraphqlPods(configArr[i], i); + const params = await expressionsGraphql(configArr[i], i); if (params) { fragments += params?.fragment; conditions = { ...conditions, ...params.conditions };