Skip to content

Commit

Permalink
Unlock now private action
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 4, 2024
1 parent df74426 commit 52288c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/upload-media/src/components/provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import { useDispatch } from '@wordpress/data';
* Internal dependencies
*/
import withRegistryProvider from './with-registry-provider';
import { unlock } from '../../lock-unlock';
import { store as uploadStore } from '../../store';

const MediaUploadProvider = withRegistryProvider( ( props: any ) => {
const { children, settings } = props;
const { updateSettings } = useDispatch( uploadStore );
const { updateSettings } = unlock( useDispatch( uploadStore ) );

useEffect( () => {
updateSettings( settings );
Expand Down

0 comments on commit 52288c5

Please sign in to comment.