diff --git a/src/components/PlaceholderWithoutTracking.jsx b/src/components/PlaceholderWithoutTracking.jsx index 766cdd1..9ad4a20 100644 --- a/src/components/PlaceholderWithoutTracking.jsx +++ b/src/components/PlaceholderWithoutTracking.jsx @@ -51,7 +51,7 @@ class PlaceholderWithoutTracking extends React.Component { } componentWillUnmount() { - if (this.observer) { + if (this.observer && this.placeholder) { this.observer.unobserve(this.placeholder); } }