mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
TS
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
e4d1859fb7
commit
ef1a1ebe12
@ -458,7 +458,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const content = this.props.mxEvent.getContent() as IMediaEventContent;
|
||||
const content = this.props.mxEvent.getContent<IMediaEventContent>();
|
||||
|
||||
if (this.state.error !== null) {
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user