ValueMappings: Value mappings field config defaults should not apply to time field (#41132)

This commit is contained in:
Torkel Ödegaard 2021-11-04 14:50:42 +01:00 committed by GitHub
parent 2c209e735c
commit fb5a65d9be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ export const getStandardFieldConfigs = () => {
process: valueMappingsOverrideProcessor,
settings: {},
defaultValue: [],
shouldApply: () => true,
shouldApply: (x) => x.type !== FieldType.time,
category: ['Value mappings'],
getItemsCount: (value?) => (value ? value.length : 0),
};