Skip to content

Commit

Permalink
Fix title clearing & preview loading
Browse files Browse the repository at this point in the history
  • Loading branch information
earnjam committed Nov 20, 2018
1 parent cdfbae7 commit 038395d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/editor/src/components/post-permalink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ class PostPermalink extends Component {
export default compose( [
withSelect( ( select ) => {
const {
isEditedPostNew,
isPermalinkEditable,
getCurrentPost,
isCurrentPostPublished,
isCleanNewPost,
isSavingPost,
getAutosaveAttribute,
getEditedPostAttribute,
Expand All @@ -173,7 +173,7 @@ export default compose( [
const { id, link, title, status } = getCurrentPost();

return {
isNew: isCleanNewPost(),
isNew: isEditedPostNew(),
postLink: link,
isEditable: isPermalinkEditable(),
isPublished: isCurrentPostPublished(),
Expand All @@ -184,6 +184,7 @@ export default compose( [
postStatus: status,
postTitle: title,
savedSlug: getAutosaveAttribute( 'generated_slug' ),
currentTitle: getEditedPostAttribute( 'title' ),
};
} ),
withDispatch( ( dispatch ) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class PostTitle extends Component {
/* eslint-enable jsx-a11y/no-autofocus */
/>
</KeyboardShortcuts>
{ isSelected && isPostTypeViewable && <PostPermalink currentTitle={ title } /> }
{ isSelected && isPostTypeViewable && <PostPermalink /> }
</div>
</div>
</PostTypeSupportCheck>
Expand Down

0 comments on commit 038395d

Please sign in to comment.