This is an automated email from the ASF dual-hosted git repository. wusheng pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git
The following commit(s) were added to refs/heads/main by this push: new e25bf9ee fix: end loading without query results (#373) e25bf9ee is described below commit e25bf9ee8b70898bf9fb2cb61a98a768244a0221 Author: Fine0830 <fanxue0...@gmail.com> AuthorDate: Mon Feb 26 19:57:02 2024 +0800 fix: end loading without query results (#373) --- src/hooks/useExpressionsProcessor.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/hooks/useExpressionsProcessor.ts b/src/hooks/useExpressionsProcessor.ts index 63db0e29..90f40e00 100644 --- a/src/hooks/useExpressionsProcessor.ts +++ b/src/hooks/useExpressionsProcessor.ts @@ -153,9 +153,14 @@ export async function useExpressionsQueryProcessor(config: Indexable) { ElMessage.error(json.errors); return { source: {}, tips: [], typesOfMQE: [] }; } - const data = expressionsSource(json); + try { + const data = expressionsSource(json); - return data; + return data; + } catch (error) { + console.error(error); + return { source: {}, tips: [], typesOfMQE: [] }; + } } export async function useExpressionsQueryPodsMetrics(