diff --git a/packages/editor/src/components/provider/index.native.js b/packages/editor/src/components/provider/index.native.js index 1a5eda37a07aa..ace8b1f01da13 100644 --- a/packages/editor/src/components/provider/index.native.js +++ b/packages/editor/src/components/provider/index.native.js @@ -91,12 +91,7 @@ class NativeEditorProvider extends Component { } componentDidMount() { - const { - capabilities, - locale, - updateSettings, - galleryWithImageBlocks, - } = this.props; + const { capabilities, locale, updateSettings } = this.props; updateSettings( { ...capabilities, @@ -149,8 +144,10 @@ class NativeEditorProvider extends Component { ); this.subscriptionParentUpdateEditorSettings = subscribeUpdateEditorSettings( - ( editorSettings ) => { - window.wp.galleryBlockV2Enabled = galleryWithImageBlocks; + ( { galleryWithImageBlocks, ...editorSettings } ) => { + if ( typeof galleryWithImageBlocks === 'boolean' ) { + window.wp.galleryBlockV2Enabled = galleryWithImageBlocks; + } updateSettings( this.getThemeColors( editorSettings ) ); } );