Skip to content

Commit

Permalink
Hotfix for publishing pages (#9161)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored Aug 20, 2018
1 parent 2ff0a29 commit ec1fd21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default compose(
withSelect( ( select ) => {
const postType = select( 'core/editor' ).getCurrentPostType();
const tagsTaxonomy = select( 'core' ).getTaxonomy( 'post_tag' );
const tags = select( 'core/editor' ).getEditedPostAttribute( tagsTaxonomy.rest_base );
const tags = tagsTaxonomy && select( 'core/editor' ).getEditedPostAttribute( tagsTaxonomy.rest_base );
return {
areTagsFetched: tagsTaxonomy !== undefined,
isPostTypeSupported: tagsTaxonomy && tagsTaxonomy.types.some( ( type ) => type === postType ),
Expand Down

0 comments on commit ec1fd21

Please sign in to comment.