Skip to content

Commit

Permalink
refactor: subsectios name for blocklist component
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvente committed Jan 19, 2024
1 parent 173e9f3 commit 3eebebb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 3eebebb

Please sign in to comment.