Merge pull request #1518 from vector-im/kegan/threepids-npe

Fix NPE when loading the Settings page which infini-spinnered
pull/1110/merge
David Baker 2016-05-16 16:09:43 +01:00
commit bbae809012
1 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,12 @@ module.exports = React.createClass({
threepids: React.PropTypes.array.isRequired, threepids: React.PropTypes.array.isRequired,
}, },
getDefaultProps: function() {
return {
threepids: []
};
},
getInitialState: function() { getInitialState: function() {
return { return {
phase: this.phases.LOADING, phase: this.phases.LOADING,