diff --git a/packages/ui/components/data-portal/InlineTextInput.tsx b/packages/ui/components/data-portal/InlineTextInput.tsx index 078d4ab18a..0da229a0d8 100644 --- a/packages/ui/components/data-portal/InlineTextInput.tsx +++ b/packages/ui/components/data-portal/InlineTextInput.tsx @@ -34,8 +34,9 @@ const useBaseStyles = createStyles((theme) => ({ const useFontSize = ({ fontSize, classNames }: InlineEditProps) => { const { classes } = useStyles() const { classes: baseClasses, cx } = useBaseStyles() - if (typeof fontSize !== 'string') { - throw new Error('`fontSize` must be a string') + if (fontSize !== undefined && typeof fontSize !== 'string') { + fontSize = fontSize.toString() + // throw new Error('`fontSize` must be a string') } const fontClass = fontSize ? classes[fontSize] : undefined return {