FieldValues: Use standard array functions (#67012)

This commit is contained in:
Ryan McKinley
2023-04-20 22:03:38 -07:00
committed by GitHub
parent 405bda7e99
commit 607b94aaa2
23 changed files with 70 additions and 69 deletions
@@ -27,8 +27,8 @@ export function mapDataFrameToAlertPreview({ fields }: DataFrame): AlertPreview
for (let index = 0; index < instanceStatusCount; index++) {
const labelValues = labelIndexes.map((labelIndex) => [fields[labelIndex].name, fields[labelIndex].values[index]]);
const state = fields[stateFieldIndex]?.values?.get(index);
const info = fields[infoFieldIndex]?.values?.get(index);
const state = fields[stateFieldIndex]?.values?.[index];
const info = fields[infoFieldIndex]?.values?.[index];
if (isGrafanaAlertState(state)) {
instances.push({