FieldConfig: Apply Thresholds for string values (#27656)

* apply thresholds for strings

* apply thresholds for all FieldTypes
This commit is contained in:
Peter Holmberg 2020-09-19 08:26:56 +02:00 committed by GitHub
parent 61a3160c34
commit 232ad5c42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ export const getStandardFieldConfigs = () => {
{ value: 80, color: 'red' }, { value: 80, color: 'red' },
], ],
}, },
shouldApply: field => field.type === FieldType.number, shouldApply: () => true,
category: ['Thresholds'], category: ['Thresholds'],
getItemsCount: value => (value ? value.steps.length : 0), getItemsCount: value => (value ? value.steps.length : 0),
}; };