diff --git a/app/javascript/mastodon/features/video/index.jsx b/app/javascript/mastodon/features/video/index.jsx index f88e9042ef..bef14ea276 100644 --- a/app/javascript/mastodon/features/video/index.jsx +++ b/app/javascript/mastodon/features/video/index.jsx @@ -469,6 +469,10 @@ class Video extends PureComponent { }; _syncVideoToVolumeState = (volume = null, muted = null) => { + if (!this.video) { + return; + } + this.video.volume = volume ?? this.state.volume; this.video.muted = muted ?? this.state.muted; };