mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
FieldValues: Use standard array functions (#67012)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user