Commit 907d3a2a by Torkel Ödegaard Committed by GitHub

StatPanel: Fixes issue formatting date values using unit option (#30979)

parent 549a2bab
......@@ -27,9 +27,10 @@ interface DisplayProcessorOptions {
// Reasonable units for time
const timeFormats: KeyValue<boolean> = {
dateTimeAsIso: true,
dateTimeAsIsoSmart: true,
dateTimeAsIsoNoDateIfToday: true,
dateTimeAsUS: true,
dateTimeAsUSSmart: true,
dateTimeAsUSNoDateIfToday: true,
dateTimeAsLocal: true,
dateTimeFromNow: true,
};
......
......@@ -77,7 +77,7 @@ export const getStandardFieldConfigs = () => {
placeholder: 'none',
},
shouldApply: (field) => field.type === FieldType.number,
shouldApply: () => true,
category,
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment