tcmulder / aquamin

Aquamin WordPress Theme
3 stars 1 forks source link

Fix empty inner blocks for template. #74

Closed tcmulder closed 7 months ago

tcmulder commented 8 months ago

This doesn't work:

const innerBlocksProps = useInnerBlocksProps({
    template: [['core/paragraph']],
});

Either this does:

const innerBlocksProps = useInnerBlocksProps({}, {
    template: [['core/paragraph']],
});

Or, better yet, though it requires some additional refactoring (think through the logic, since blockProps I don't think is being used correctly currently):

const innerBlocksProps = useInnerBlocksProps(blockProps, {
    template: [['core/paragraph']],
});