Skip to content

Commit 023034c

Browse files
committed
Check for existence of content.size. Fixes element-hq#201.
1 parent 61f951a commit 023034c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/skins/vector/views/molecules/MImageTile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = React.createClass({
8383
<div className="mx_MImageTile_download">
8484
<a href={cli.mxcUrlToHttp(content.url)} target="_blank">
8585
<img src="img/download.png" width="10" height="12"/>
86-
Download {content.body} ({ filesize(content.info.size) })
86+
Download {content.body} ({ content.info && content.info.size ? filesize(content.info.size) : "Unknwon size" })
8787
</a>
8888
</div>
8989
</span>

0 commit comments

Comments
 (0)