FieldConfig: Apply Thresholds for string values (#27656)

* apply thresholds for strings

* apply thresholds for all FieldTypes

(cherry picked from commit 232ad5c42e)
This commit is contained in:
Peter Holmberg
2020-09-19 08:26:56 +02:00
committed by Leonard Gram
parent a9a053591b
commit a3fc96196a
@@ -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),
};