mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Comparing video id's as numbers.
This commit is contained in:
parent
b163b60837
commit
602aa32ff0
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ export const useVideo = (videoId) => {
|
|||
const [nextFile, setNextFile] = useState(null);
|
||||
|
||||
const fetchVideo = async () => {
|
||||
if (videoId && videoFile && videoFile.video.id !== videoId) {
|
||||
if (videoId && videoFile && Number(videoFile.video.id) !== Number(videoId)) {
|
||||
// Video is changing. Clear the old video before fetching.
|
||||
setVideoFile(null);
|
||||
setPrevFile(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue