Skip to content

Commit

Permalink
use string in actions.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed May 27, 2021
1 parent a67ad9e commit 7b36c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-post/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ export function* setAvailableMetaBoxesPerLocation( metaBoxesPerLocation ) {

// Save metaboxes when performing a full save on the post.
saveMetaboxUnsubscribe = subscribe( () => {
const isSavingPost = select( editorStore ).isSavingPost();
const isAutosavingPost = select( editorStore ).isAutosavingPost();
const isSavingPost = select( editorStore.name ).isSavingPost();
const isAutosavingPost = select( editorStore.name ).isAutosavingPost();

// Save metaboxes on save completion, except for autosaves that are not a post preview.
const shouldTriggerMetaboxesSave =
Expand Down

0 comments on commit 7b36c60

Please sign in to comment.