File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ export default async function decorate(block) {
41
41
. forEach ( ( fragment ) => {
42
42
const sections = fragment . querySelectorAll ( ':scope .section' ) ;
43
43
44
- // If only single section, replace enrichment block with content of section
44
+ // If only single section, replace block with content of section
45
45
if ( sections . length === 1 ) {
46
46
block . closest ( '.section' ) . classList . add ( ...sections [ 0 ] . classList ) ;
47
47
const wrapper = block . closest ( '.enrichment-wrapper' ) ;
48
48
Array . from ( sections [ 0 ] . children )
49
49
. forEach ( ( child ) => wrapper . parentNode . insertBefore ( child , wrapper ) ) ;
50
50
} else if ( sections . length > 1 ) {
51
- // If multiple section, append them to current section
51
+ // If multiple sections, insert them after section of block
52
52
const blockSection = block . closest ( '.section' ) ;
53
53
Array . from ( sections )
54
54
. reverse ( )
You can’t perform that action at this time.
0 commit comments