From fb5a65d9beec4e0c810b91746087178f5c58f7a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 4 Nov 2021 14:50:42 +0100 Subject: [PATCH] ValueMappings: Value mappings field config defaults should not apply to time field (#41132) --- 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 5f094f7fecc..b5570c4a587 100644 --- a/packages/grafana-ui/src/utils/standardEditors.tsx +++ b/packages/grafana-ui/src/utils/standardEditors.tsx @@ -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), };