Skip to content
Snippets Groups Projects
Commit b96006d6 authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[REF]: Refactor code style(sopaces and tabs)

parent 0c4a367b
No related branches found
No related tags found
No related merge requests found
...@@ -54,8 +54,14 @@ const useFileMosaicInitializer = ( ...@@ -54,8 +54,14 @@ const useFileMosaicInitializer = (
//console.log("init", url); //console.log("init", url);
setUrl(url); setUrl(url);
//In case is a video and also has a image preview
if (imageUrl) { if (imageUrl && videoUrl) {
setIsVideo(true);
setImageSource(imageUrl);
setVideoSource(videoUrl);
setIsReady(true);
return;
} else if (imageUrl) {
setIsImage(true); setIsImage(true);
setImageSource(imageUrl); setImageSource(imageUrl);
setIsReady(true); setIsReady(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment