Commit 60adbba 1 parent d077c2c commit 60adbba Copy full SHA for 60adbba
File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,19 @@ import { unlock } from './lock-unlock';
26
26
import useInitEditedEntityFromURL from './components/sync-state-with-url/use-init-edited-entity-from-url' ;
27
27
const { ExperimentalEditorProvider } = unlock ( editorPrivateApis ) ;
28
28
29
- function Editor ( { settings, initialEdits, ...props } ) {
29
+ function Editor ( {
30
+ postId : postIdInit ,
31
+ postType : postTypeInit ,
32
+ settings,
33
+ initialEdits,
34
+ ...props
35
+ } ) {
30
36
const isLargeViewport = useViewportMatch ( 'medium' ) ;
31
- const { postId, postType = 'post' } = useInitEditedEntityFromURL ( ) ;
37
+ const { postId : postIdUrl , postType : postTypeUrl } =
38
+ useInitEditedEntityFromURL ( ) ;
32
39
40
+ const postId = postIdUrl || postIdInit ;
41
+ const postType = postTypeUrl || postTypeInit ;
33
42
const {
34
43
allowRightClickOverrides,
35
44
hasFixedToolbar,
You can’t perform that action at this time.
0 commit comments