mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-16 11:17:02 +02:00
Assign a default onFinished call to prevent TypeErrors being thrown.
This commit is contained in:
parent
28b85bb226
commit
2002af6c7d
@ -34,6 +34,12 @@ var sdk = require('../../../index');
|
|||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'MemberInfo',
|
displayName: 'MemberInfo',
|
||||||
|
|
||||||
|
getDefaultProps: function() {
|
||||||
|
return {
|
||||||
|
onFinished: function() {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
// work out the current state
|
// work out the current state
|
||||||
if (this.props.member) {
|
if (this.props.member) {
|
||||||
|
Loading…
Reference in New Issue
Block a user