Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then((result: any) => {
let resp: DataQueryResponse = toDataQueryResponse(result);
let values: MetricFindValue[] = [];
resp.data.forEach((data: DataQueryResponseData) => {
values.push({ text: data.name, expandable: false });
});
return values;
});
}