Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/afraid-terms-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@faustwp/blocks": patch
---

Bug: Fixed an issue an issue with WordPressBlocksProvider and the theme argument to allow it to be optional and not throw an error. By default theme is now an empty object
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function WordPressBlocksProvider(props: {
config: WordPressBlocksProviderConfig;
}) {
const { children, config } = props;
const { blocks, theme } = config;
const { blocks, theme = {} } = config;

return (
<WordPressBlocksContext.Provider value={blocks}>
Expand Down
Loading