fixed thumbnail error between videos
This commit is contained in:
parent
91d41bc595
commit
c8ae8f3047
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,11 @@ class Preview extends React.Component {
|
||||||
this.setPreviewImageSource(newProps.file);
|
this.setPreviewImageSource(newProps.file);
|
||||||
}
|
}
|
||||||
if (newProps.thumbnail !== this.props.thumbnail) {
|
if (newProps.thumbnail !== this.props.thumbnail) {
|
||||||
this.setPreviewImageSourceFromFile(newProps.thumbnail);
|
if (newProps.thumbnail) {
|
||||||
|
this.setPreviewImageSourceFromFile(newProps.thumbnail);
|
||||||
|
} else {
|
||||||
|
this.setState({imgSource: this.state.defaultThumbnail});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setPreviewImageSourceFromFile (file) {
|
setPreviewImageSourceFromFile (file) {
|
||||||
|
|
Loading…
Reference in a new issue