diff --git a/web/src/components/HistoryViewer/HistoryVideo.tsx b/web/src/components/HistoryViewer/HistoryVideo.tsx index 8759f5642..ecdfca3af 100644 --- a/web/src/components/HistoryViewer/HistoryVideo.tsx +++ b/web/src/components/HistoryViewer/HistoryVideo.tsx @@ -37,12 +37,7 @@ export const HistoryVideo = ({ onPlay, }: HistoryVideoProps) => { const apiHost = useApiHost(); - const videoRef = useRef(); - - const [videoProperties, setVideoProperties] = useState({ - posterUrl: '', - videoUrl: '', - }); + const videoRef = useRef(null); useEffect(() => { let video: any; @@ -100,7 +95,6 @@ export const HistoryVideo = ({ [videoIsPlaying, onTimeUpdate] ); - const { posterUrl, videoUrl } = videoProperties; return (