Skip to content

Commit

Permalink
Check if block editor is loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed Oct 15, 2024
1 parent 9428792 commit 1203826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/js/dfv/src/hooks/useBlockEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const useBlockEditor = () => {
const notices = wp.data?.dispatch( 'core/notices' );

// @todo Use hook instead of savePost override once stable.
if ( ! window.PodsBlockEditor ) {
if ( ! window.PodsBlockEditor && editorDispatch && editorDispatch.hasOwnProperty( 'savePost' ) ) {
// First init.
window.PodsBlockEditor = {
// Store original.
Expand Down

0 comments on commit 1203826

Please sign in to comment.