mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Gauges: Fixes error when mappings array was undefined (#18353)
This commit is contained in:
parent
bc291f94ef
commit
142c7eb0e6
@ -9,10 +9,6 @@ export interface GaugeOptions extends SingleStatBaseOptions {
|
||||
|
||||
export const standardGaugeFieldOptions: FieldDisplayOptions = {
|
||||
...standardFieldDisplayOptions,
|
||||
defaults: {
|
||||
min: 0,
|
||||
max: 100,
|
||||
},
|
||||
};
|
||||
|
||||
export const defaults: GaugeOptions = {
|
||||
|
@ -13,12 +13,10 @@ export interface SingleStatOptions extends SingleStatBaseOptions {
|
||||
prefixFontSize?: string;
|
||||
valueFontSize?: string;
|
||||
postfixFontSize?: string;
|
||||
|
||||
colorBackground?: boolean;
|
||||
colorValue?: boolean;
|
||||
colorPrefix?: boolean;
|
||||
colorPostfix?: boolean;
|
||||
|
||||
sparkline: SparklineOptions;
|
||||
}
|
||||
|
||||
@ -32,6 +30,7 @@ export const standardFieldDisplayOptions: FieldDisplayOptions = {
|
||||
{ value: -Infinity, color: 'green' },
|
||||
{ value: 80, color: 'red' }, // 80%
|
||||
],
|
||||
mappings: [],
|
||||
},
|
||||
override: {},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user