Skip to content

Commit

Permalink
Editor: Safer isPreviewingPost check (#33840)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Aug 3, 2021
1 parent a3445cc commit 4872d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ export function isPreviewingPost( state ) {
if ( ! isSavingPost( state ) ) {
return false;
}
return !! state.saving.options.isPreview;
return !! get( state.saving, [ 'options', 'isPreview' ] );
}

/**
Expand Down

0 comments on commit 4872d19

Please sign in to comment.