From 3b8f2db644719713bbc4f7e64564ea74a5f5ab01 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Sun, 20 Oct 2024 08:04:58 +0400 Subject: [PATCH] Editor: No need to reset mode when changing device preview types --- 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 0fbb2beb62665..e7a19f92548f5 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(); };