From fdde8483b7ea0609ee03ad009504b7ee2b303c3d Mon Sep 17 00:00:00 2001 From: dom phan Date: Thu, 10 Oct 2024 15:09:32 -0700 Subject: [PATCH] fix(ui): Add additional numerical types for table formatting --- weave-js/src/components/Panel2/PanelTable/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave-js/src/components/Panel2/PanelTable/util.ts b/weave-js/src/components/Panel2/PanelTable/util.ts index 0dcba3fac4d..f72f1be660f 100644 --- a/weave-js/src/components/Panel2/PanelTable/util.ts +++ b/weave-js/src/components/Panel2/PanelTable/util.ts @@ -33,7 +33,7 @@ import {useTableStateWithRefinedExpressions} from './tableStateReact'; export const getColumnCellFormats = (colType: Type): WeaveFormatContextType => { const t = nullableTaggableStrip(colType); const numberFormat = - t === 'number' + t === 'number' || t === 'float' || t === 'int' ? { textAlign: 'right' as const, justifyContent: 'normal',