From c799155c371151e0765a792ed340b4250f51b855 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:10:44 -0400 Subject: [PATCH] convert index key to string to get rid of symbol index error --- packages/ui/components/data-portal/InlineTextInput.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ui/components/data-portal/InlineTextInput.tsx b/packages/ui/components/data-portal/InlineTextInput.tsx index 078d4ab18a0..0da229a0d83 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 {