Show broken image for inline images without dimensions (#2868)

This commit is contained in:
Elias Nahum 2019-06-06 15:14:32 -04:00
parent f76bd73c0b
commit ffe5a89a46
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -114,6 +114,11 @@ export default class MarkdownImage extends React.Component {
return;
}
if (!width || !height) {
this.setState({failed: true});
return;
}
this.setState({
failed: false,
originalHeight: height,