Render custom editor for mailpoet_email post types
[MAILPOET-6090]
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
f170db9294
commit
c71949e326
@@ -10,7 +10,9 @@ import {
|
||||
|
||||
export function getInitialState(): State {
|
||||
const searchParams = new URLSearchParams( window.location.search );
|
||||
const postId = parseInt( searchParams.get( 'postId' ), 10 );
|
||||
const postId = parseInt( searchParams.get( 'post' ), 10 )
|
||||
? parseInt( searchParams.get( 'post' ), 10 )
|
||||
: parseInt( searchParams.get( 'postId' ), 10 );
|
||||
return {
|
||||
inserterSidebar: {
|
||||
isOpened: false,
|
||||
|
Reference in New Issue
Block a user