Skip to content

Commit

Permalink
fix(accoridion): accordian type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DharmapalP committed Nov 21, 2024
1 parent 0624dcb commit cbd944d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/accordion/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default function decorate(block) {
const label = row.children[0];
let type = row.children[1];

if (type) {
type = document.createElement(type);
if (type.type.firstChild) {
type = document.createElement(type.firstChild.textContent);
} else {
type = document.createElement('h3');
}
Expand Down

0 comments on commit cbd944d

Please sign in to comment.