Skip to content

Commit

Permalink
chore: add the commented out code back
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishasoumya-02 committed Nov 18, 2024
1 parent 1cf210e commit 53f7405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ const AccordionEdit = (props) => {
const intl = useIntl();

const handleClick = (e, itemProps) => {
// // If the title was clicked, bail out, let the event bubble.
// If the title was clicked, bail out, let the event bubble.
if (e.preventToggle) {
return;
}
// // Do not stop propagation, bubbling is needed for the editor to select the block.
// Do not stop propagation, bubbling is needed for the editor to select the block.
const { index } = itemProps;
if (non_exclusive) {
const newIndex =
Expand Down
4 changes: 2 additions & 2 deletions packages/volto-accordion-block/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const extendedSchema = (config) => {
if (config.blocks.blocksConfig[key]?.restricted) {
return false;
} else {
// const title = config.blocks.blocksConfig[key]?.title || key;
return key;
const title = config.blocks.blocksConfig[key]?.title || key;
return [key, title];
}
})
.filter((val) => !!val);
Expand Down

0 comments on commit 53f7405

Please sign in to comment.