Skip to content

Commit

Permalink
fix: check for null options
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 11, 2020
1 parent 24e92ba commit 468cae6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/blocks/src/context/block/BlockContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export const BlockContextProvider: React.FC<BlockContextInputProps> = ({
storyId,
docId: propsDocId,
storeProvider: store,
options: deepMerge(options, store.config),
options: store.config
? deepMerge(options, store.config)
: options,
}}
>
<BlockDataContextProvider
Expand Down

0 comments on commit 468cae6

Please sign in to comment.