fixed thumbnail error between videos

This commit is contained in:
bill bittner 2018-03-01 20:19:59 -08:00
parent 91d41bc595
commit c8ae8f3047

View file

@ -17,7 +17,11 @@ class Preview extends React.Component {
this.setPreviewImageSource(newProps.file);
}
if (newProps.thumbnail !== this.props.thumbnail) {
if (newProps.thumbnail) {
this.setPreviewImageSourceFromFile(newProps.thumbnail);
} else {
this.setState({imgSource: this.state.defaultThumbnail});
}
}
}
setPreviewImageSourceFromFile (file) {