Skip to content

Commit 93b3a13

Browse files
committed
fix: ensure there are default blocks if not disabled
1 parent a48421e commit 93b3a13

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/block/button-group/substitute.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const substitute = {
2020
if ( 'stackable/button-group|button' in disabledBlocks && disabledBlocks[ 'stackable/button-group|button' ] === BLOCK_STATE.DISABLED ) { // eslint-disable-line camelcase
2121
return [ 'core/buttons', {}, innerBlocks ]
2222
}
23+
return [ 'stackable/button-group', oldAttributes, innerBlocks ]
2324
},
2425
}
2526

src/block/button/substitute.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const substitute = {
1010
text: oldAttributes.text,
1111
} ]
1212
}
13+
return [ 'stackable/button', oldAttributes ]
1314
},
1415
}
1516

0 commit comments

Comments
 (0)