Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jul 31, 2024
1 parent 60508f6 commit 01712ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/editor/src/components/preview-dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ export default function PreviewDropdown( { forceIsAutosaveable, disabled } ) {
*
* @type {Object}
*/
let previewValue = deviceType;
if ( editorMode === 'zoom-out' ) {
previewValue = 'ZoomOut';
}
const previewValue = editorMode === 'zoom-out' ? 'ZoomOut' : deviceType;
let selectedChoice = choices.find(
( choice ) => choice.value === previewValue
);
Expand Down

0 comments on commit 01712ed

Please sign in to comment.