Skip to content

Commit bbae809

Browse files
committed
Merge pull request element-hq#1518 from vector-im/kegan/threepids-npe
Fix NPE when loading the Settings page which infini-spinnered
2 parents 8fb521c + bc166f1 commit bbae809

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/components/views/settings/Notifications.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ module.exports = React.createClass({
7474
threepids: React.PropTypes.array.isRequired,
7575
},
7676

77+
getDefaultProps: function() {
78+
return {
79+
threepids: []
80+
};
81+
},
82+
7783
getInitialState: function() {
7884
return {
7985
phase: this.phases.LOADING,

0 commit comments

Comments
 (0)