diff --git a/e2e/src/components/atoms/videoJS/index.tsx b/e2e/src/components/atoms/videoJS/index.tsx index dd9470f..ddcb23e 100644 --- a/e2e/src/components/atoms/videoJS/index.tsx +++ b/e2e/src/components/atoms/videoJS/index.tsx @@ -30,7 +30,7 @@ export const VideoJS = (props: any) => { const player: any = playerRef.current; player.src(options.sources); } - }, [options]); + }, [options, onReady]); // Dispose the Video.js player when the functional component unmounts React.useEffect(() => {