Skip to content

Commit

Permalink
Merge branch 'dev' into l10n_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Jun 28, 2024
2 parents b71dbb8 + c799155 commit def9822
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ui/components/data-portal/InlineTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit def9822

Please sign in to comment.