From f4bdabd5d81571c38f6332cf8734d434b1111700 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Sun, 30 Jul 2017 13:57:21 -0400 Subject: [PATCH] fix clicking play twice required on most videos --- ui/js/component/video/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/js/component/video/view.jsx b/ui/js/component/video/view.jsx index f5cd375bd..3157c535d 100644 --- a/ui/js/component/video/view.jsx +++ b/ui/js/component/video/view.jsx @@ -16,7 +16,7 @@ class Video extends React.PureComponent { componentWillReceiveProps(nextProps) { // reset playing state upon change path action - if (!this.isMediaSame(nextProps) && this.state.isPlaying) { + if (!this.isMediaSame(nextProps) && this.props.fileInfo && this.state.isPlaying) { this.state.isPlaying = false; } }