mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-12 21:01:15 +01:00
fix getDefaultProps mixup
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
4c3f811050
commit
71a12b6bbb
@ -155,9 +155,11 @@ module.exports = withMatrixClient(React.createClass({
|
|||||||
isTwelveHour: PropTypes.bool,
|
isTwelveHour: PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultProps: {
|
getDefaultProps: function() {
|
||||||
// no-op function because onWidgetLoad is optional yet some subcomponents assume its existence
|
return {
|
||||||
onWidgetLoad: function() {},
|
// no-op function because onWidgetLoad is optional yet some sub-components assume its existence
|
||||||
|
onWidgetLoad: function() {},
|
||||||
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user