Skip to content

Commit

Permalink
Add missing check
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Dec 10, 2020
1 parent 441ab71 commit 0b321c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ function EditorProvider( {

// Synchronize the template as it changes
useEffect( () => {
__unstableSetupTemplate( __unstableTemplate );
if ( __unstableTemplate ) {
__unstableSetupTemplate( __unstableTemplate );
}
}, [ __unstableTemplate ] );

if ( ! isReady ) {
Expand Down

0 comments on commit 0b321c9

Please sign in to comment.