Skip to content

Commit

Permalink
don't load modal component at all if not new post
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Jul 11, 2023
1 parent 4d9d97a commit 670079a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-sync-status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function PostSyncStatusModal() {
} );
};

if ( postType !== 'wp_block' ) {
if ( postType !== 'wp_block' || ! isNewPost ) {
return null;
}

Expand Down

0 comments on commit 670079a

Please sign in to comment.