Check src exists first in hover to play, hopefully fixes #322

This commit is contained in:
Mary Kate 2020-08-15 16:24:34 -05:00
parent 99d96ed901
commit 02c7325e4d
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class StillImage extends React.PureComponent {
hoverToPlay() { hoverToPlay() {
const { autoPlayGif, src } = this.props; const { autoPlayGif, src } = this.props;
return !autoPlayGif && (src.endsWith('.gif') || src.startsWith('blob:')); return src && !autoPlayGif && (src.endsWith('.gif') || src.startsWith('blob:'));
} }
setCanvasRef = c => { setCanvasRef = c => {