diff --git a/public/app/features/dashboard-scene/settings/variables/components/VariableValuesPreview.tsx b/public/app/features/dashboard-scene/settings/variables/components/VariableValuesPreview.tsx index 6a07db679c9..41a9d5c4fc3 100644 --- a/public/app/features/dashboard-scene/settings/variables/components/VariableValuesPreview.tsx +++ b/public/app/features/dashboard-scene/settings/variables/components/VariableValuesPreview.tsx @@ -28,7 +28,7 @@ VariableValuesPreview.displayName = 'VariableValuesPreview'; function VariableValuesWithPropsPreview({ options }: { options: VariableValueOption[] }) { const styles = useStyles2(getStyles); const data = options.map((o) => ({ label: String(o.label), value: String(o.value), ...o.properties })); - // the first item in data may be the "All" option which does not have any extra properties, so we try the 2nd item to determine the column names + // the first item in data may be the "All" option, which does not have any extra properties, so we try the 2nd item to determine the column names const columns = Object.keys(data[1] || data[0]).map((id) => ({ id, header: id, sortType: 'alphanumeric' as const })); return (