From 52288c5021dee8708c7924e123833d45d4e230c3 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 24 Oct 2024 15:31:06 +0200 Subject: [PATCH] Unlock now private action --- packages/upload-media/src/components/provider/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/upload-media/src/components/provider/index.tsx b/packages/upload-media/src/components/provider/index.tsx index 741d2197b186f..0bc187e6a1d86 100644 --- a/packages/upload-media/src/components/provider/index.tsx +++ b/packages/upload-media/src/components/provider/index.tsx @@ -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 );