From d96ba082f7abb010f7ca45f422a543c5a9377bb5 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Thu, 3 Apr 2025 10:04:58 +0100 Subject: [PATCH] fix: apply feedback --- frontend/src/components/visual-editor/CustomBlocks.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/visual-editor/CustomBlocks.tsx b/frontend/src/components/visual-editor/CustomBlocks.tsx index cf17cabb..11304829 100644 --- a/frontend/src/components/visual-editor/CustomBlocks.tsx +++ b/frontend/src/components/visual-editor/CustomBlocks.tsx @@ -22,18 +22,18 @@ export const CustomBlocks = () => { { entity: EntityType.CUSTOM_BLOCK }, { hasCount: false }, ); - const memoizedCustomBlock = useMemo( + const memoizedCustomBlocks = useMemo( () => customBlocks.sort((a, b) => a.id.localeCompare(b.id)), [customBlocks], ); - return memoizedCustomBlock.length ? ( + return memoizedCustomBlocks.length ? ( <> {t("title.custom_blocks")} - {memoizedCustomBlock.map((customBlock) => ( + {memoizedCustomBlocks.map((customBlock) => (