Skip to content

Commit

Permalink
release: 2024-06-28c (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Jun 28, 2024
2 parents f5de73a + c799155 commit 40527f8
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

1 comment on commit 40527f8

@vercel
Copy link

@vercel vercel bot commented on 40527f8 Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.