Skip to content

Commit

Permalink
fix: Syntax error when using default export - filters.md
Browse files Browse the repository at this point in the history
  • Loading branch information
999 committed Aug 19, 2023
1 parent 4e547e8 commit ffebe71
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions sources/@roots/wordpress-hmr/docs/usage/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,17 @@ export default {
hook: `blocks.registerBlockType`,
/** Filter callback */
callback: (settings, name) => {
if (name !== 'core/list') return settings;

return assign({}, settings, {
example: {
innerBlocks: [
{name: 'core/list-item', attributes: {content: 'Item a'}},
{name: 'core/list-item', attributes: {content: 'Item b'}},
],
},
})
if (name !== 'core/list') return settings;

return assign({}, settings, {
example: {
innerBlocks: [
{name: 'core/list-item', attributes: {content: 'Item a'}},
{name: 'core/list-item', attributes: {content: 'Item b'}},
],
},
})
}
}
```

Expand Down

0 comments on commit ffebe71

Please sign in to comment.