From 232ad5c42e2ae89e3ade9b17e80cb75bf47f7a5b Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Sat, 19 Sep 2020 08:26:56 +0200 Subject: [PATCH] FieldConfig: Apply Thresholds for string values (#27656) * apply thresholds for strings * apply thresholds for all FieldTypes --- packages/grafana-ui/src/utils/standardEditors.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/utils/standardEditors.tsx b/packages/grafana-ui/src/utils/standardEditors.tsx index ac66c10ba93..8611e840849 100644 --- a/packages/grafana-ui/src/utils/standardEditors.tsx +++ b/packages/grafana-ui/src/utils/standardEditors.tsx @@ -146,7 +146,7 @@ export const getStandardFieldConfigs = () => { { value: 80, color: 'red' }, ], }, - shouldApply: field => field.type === FieldType.number, + shouldApply: () => true, category: ['Thresholds'], getItemsCount: value => (value ? value.steps.length : 0), };