From f680907a7a6c864a869d4b0ccb3b33476ecc57a1 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Mon, 21 Oct 2024 19:25:19 +0900 Subject: [PATCH] Editor: No need to reset mode when changing device preview types (#66261) Co-authored-by: Mamaduka Co-authored-by: draganescu --- packages/editor/src/components/preview-dropdown/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/editor/src/components/preview-dropdown/index.js b/packages/editor/src/components/preview-dropdown/index.js index 0fbb2beb62665e..e7a19f92548f5f 100644 --- a/packages/editor/src/components/preview-dropdown/index.js +++ b/packages/editor/src/components/preview-dropdown/index.js @@ -46,12 +46,10 @@ export default function PreviewDropdown( { forceIsAutosaveable, disabled } ) { }; }, [] ); const { setDeviceType } = useDispatch( editorStore ); - const { __unstableSetEditorMode } = useDispatch( blockEditorStore ); const { resetZoomLevel } = unlock( useDispatch( blockEditorStore ) ); const handleDevicePreviewChange = ( newDeviceType ) => { setDeviceType( newDeviceType ); - __unstableSetEditorMode( 'edit' ); resetZoomLevel(); };