Add a missing parameter to useSelect call

This commit is contained in:
jordi fita mas 2024-06-14 19:41:17 +02:00
parent bb9748b2cc
commit 79bdee916b
1 changed files with 2 additions and 2 deletions

View File

@ -2,11 +2,11 @@ import { useSelect } from '@wordpress/data';
import { InterfaceSkeleton, FullscreenMode } from '@wordpress/interface'; import { InterfaceSkeleton, FullscreenMode } from '@wordpress/interface';
import { BlockBreadcrumb, BlockCanvas, store as blockEditorStore } from '@wordpress/block-editor'; import { BlockBreadcrumb, BlockCanvas, store as blockEditorStore } from '@wordpress/block-editor';
export default function BlockEditor({ rootClientId }) { export default function BlockEditor() {
const styles = useSelect(( select ) => { const styles = useSelect(( select ) => {
const { getSettings } = select( blockEditorStore ); const { getSettings } = select( blockEditorStore );
return getSettings().styles; return getSettings().styles;
}); }, []);
return ( return (
<> <>
<FullscreenMode isActive={ true } /> <FullscreenMode isActive={ true } />