From 3eebebb6102476efbaaff7bc61f43c8160fe41f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jhon=20Vent=C3=A9?= Date: Fri, 19 Jan 2024 15:51:40 -0500 Subject: [PATCH] refactor: subsectios name for blocklist component --- .../sharedComponents/InsertLinkModal/BlocksList/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editors/sharedComponents/InsertLinkModal/BlocksList/index.jsx b/src/editors/sharedComponents/InsertLinkModal/BlocksList/index.jsx index 38cdf04dd..b3d8ac48b 100644 --- a/src/editors/sharedComponents/InsertLinkModal/BlocksList/index.jsx +++ b/src/editors/sharedComponents/InsertLinkModal/BlocksList/index.jsx @@ -31,11 +31,11 @@ const BlocksList = ({ blocks, onBlockSelected }) => { }); const sections = getSectionsList(blocks); - const subSections = getChildrenFromList( + const subsections = getChildrenFromList( blockState.blockSelected, blocks, ); - const listItems = blockState.hasNavigated ? subSections : sections; + const listItems = blockState.hasNavigated ? subsections : sections; const isBlockSelectedUnit = blockState.type === blockTypes.unit; const blockNameButtonClass = isBlockSelectedUnit ? 'col-12' : 'col-11';