From 531ad8dc639da83fc2e41133755845fe9b4a4a16 Mon Sep 17 00:00:00 2001 From: Justin Collier Date: Thu, 24 Oct 2019 21:58:21 -0500 Subject: [PATCH] fix flow error in player --- src/ui/component/viewers/videoViewer/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/component/viewers/videoViewer/view.jsx b/src/ui/component/viewers/videoViewer/view.jsx index f4a4b07d9..60d16bf75 100644 --- a/src/ui/component/viewers/videoViewer/view.jsx +++ b/src/ui/component/viewers/videoViewer/view.jsx @@ -46,7 +46,7 @@ function VideoViewer(props: Props) { const { contentType, source, setPlayingUri, onEndedCB, changeVolume, changeMute, volume, muted } = props; const videoRef = useRef(); const [requireRedraw, setRequireRedraw] = useState(false); - let player = null; + let player; useEffect(() => { const currentVideo: HTMLVideoElement | null = document.querySelector('video');