Show broken image for inline images without dimensions (#2868)
This commit is contained in:
parent
cdfc1a8317
commit
2abf044193
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue