From f37dc8ac4f8784fc53ac07d2f72b99a96ff1e9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bertalan=20K=C3=B6rmendy?= Date: Fri, 6 Oct 2023 10:48:21 +0200 Subject: [PATCH] fix (#4332) --- .../style-section/text-subsection/font-family-select-popup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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], )