diff --git a/desktop/plugins/public/ui-debugger/components/sidebarV2/AttributesInspector.tsx b/desktop/plugins/public/ui-debugger/components/sidebarV2/AttributesInspector.tsx index a48b110c6..61abfdde8 100644 --- a/desktop/plugins/public/ui-debugger/components/sidebarV2/AttributesInspector.tsx +++ b/desktop/plugins/public/ui-debugger/components/sidebarV2/AttributesInspector.tsx @@ -326,6 +326,11 @@ function StyledInput({ mutable: boolean; rightAddon?: string; }) { + let formatted: any = value; + if (typeof value === 'number') { + //cap the number of decimal places to 5 but dont add trailing zeros + formatted = Number.parseFloat(value.toFixed(5)); + } return ( );