Skip to content

Commit a0a591e

Browse files
committed
WordPress#1004 - Fix linting error
1 parent 7c32aba commit a0a591e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

editor/inserter/menu.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ class InserterMenu extends wp.element.Component {
227227
const visibleBlocksByCategory = this.getVisibleBlocksByCategory( wp.blocks.getBlockTypes() );
228228
const visualEditorHeight = document.querySelector( '.editor-visual-editor' ).clientHeight;
229229
const minimumNeededHeight = 600;
230-
let positionClasses = position.split( ' ' ).map( ( pos ) => `is-${ pos }` );
230+
const positionClasses = position.split( ' ' ).map( ( pos ) => `is-${ pos }` );
231231
if ( visualEditorHeight < minimumNeededHeight ) {
232232
const isTopIndex = positionClasses.indexOf( 'is-top' );
233233
if ( -1 !== isTopIndex ) {
234-
positionClasses[isTopIndex] = 'is-bottom';
235-
};
234+
positionClasses[ isTopIndex ] = 'is-bottom';
235+
}
236236
}
237237
const className = classnames( 'editor-inserter__menu', positionClasses );
238238

0 commit comments

Comments
 (0)