diff --git a/editor/src/components/inspector/sections/style-section/text-subsection/font-family-select-popup.tsx b/editor/src/components/inspector/sections/style-section/text-subsection/font-family-select-popup.tsx index 78454c140d1e..1b08dbb194ee 100644 --- a/editor/src/components/inspector/sections/style-section/text-subsection/font-family-select-popup.tsx +++ b/editor/src/components/inspector/sections/style-section/text-subsection/font-family-select-popup.tsx @@ -434,7 +434,7 @@ export const FontFamilySelectPopup = React.memo( ) const getItemSize = React.useCallback( - (index: number) => filteredData[index].height, + (index: number) => filteredData.at(index)?.height ?? 0, [filteredData], )