Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Fine0830 committed Aug 22, 2024
1 parent fc76295 commit 630620e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/views/dashboard/Widget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,15 @@ limitations under the License. -->
}
async function queryMetrics() {
loading.value = true;
const metrics = await useDashboardQueryProcessor([
{
metrics: config.value.expressions || [],
metricConfig: config.value.metricConfig || [],
subExpressions: config.value.subExpressions || [],
id: config.value.i,
},
]);
const metrics: { [key: string]: { source: { [key: string]: unknown }; typesOfMQE: string[] } } =
await useDashboardQueryProcessor([
{
metrics: config.value.expressions || [],
metricConfig: config.value.metricConfig || [],
subExpressions: config.value.subExpressions || [],
id: config.value.i,
},
]);
const params = metrics[config.value.i];
loading.value = false;
source.value = params.source || {};
Expand Down

0 comments on commit 630620e

Please sign in to comment.