Skip to content

Commit

Permalink
Lint sigh.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz committed Jun 2, 2018
1 parent 29a6d50 commit 22bb29d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions editor/utils/url.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/**
* External Dependencies
*/

import { get } from 'lodash';
import { get } from 'lodash';

/**
* WordPress dependencies
Expand Down Expand Up @@ -31,7 +30,7 @@ export function getPostEditUrl( postId ) {
*/
export function getWPAdminURL( page, query ) {
const settings = select( 'core/editor' ).getEditorSettings();
const url = get( settings, 'wpAdminURL', '' ) + page;
const url = get( settings, [ 'wpAdminURL' ], '' ) + page;
return addQueryArgs( url, query );
}

Expand Down

0 comments on commit 22bb29d

Please sign in to comment.