Skip to content

Commit

Permalink
Fix error when reloading while saving a pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed May 29, 2024
1 parent b3188ed commit 6c76bb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function useScrollIntoView( { isSelected } ) {
if ( isSelected ) {
const { ownerDocument } = node;
const { defaultView } = ownerDocument;
if ( ! defaultView.IntersectionObserver ) {
if ( ! defaultView?.IntersectionObserver ) {
return;
}
const observer = new defaultView.IntersectionObserver(
Expand Down

0 comments on commit 6c76bb9

Please sign in to comment.