From cbf12e3f9071ea3fbdd6f3a34f54b83551baba45 Mon Sep 17 00:00:00 2001 From: JohnMark Sill Date: Fri, 24 Jun 2022 09:35:56 -0500 Subject: [PATCH] fix: removed unused state --- web/src/components/HistoryViewer/HistoryVideo.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 (