feat: fix clouds functions and heygen
This commit is contained in:
@@ -113,10 +113,18 @@ const FullscreenIntroVideo = ({
|
||||
const load = async () => {
|
||||
try {
|
||||
const nextUri = await resolveMediaUri(url)
|
||||
if (!nextUri) {
|
||||
if (isMounted) {
|
||||
setUri(null)
|
||||
handleClose()
|
||||
}
|
||||
return
|
||||
}
|
||||
assignUri(nextUri)
|
||||
} catch {
|
||||
if (isMounted) {
|
||||
setUri(null)
|
||||
handleClose()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -126,7 +134,7 @@ const FullscreenIntroVideo = ({
|
||||
return () => {
|
||||
isMounted = false
|
||||
}
|
||||
}, [url])
|
||||
}, [handleClose, url])
|
||||
|
||||
useEffect(() => {
|
||||
if (!visible || !uri) {
|
||||
|
||||
Reference in New Issue
Block a user