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:
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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user