Merge pull request #1335 from mattermost/triple-dot-fix
Fix user profile never updating properly
Этот коммит содержится в:
@@ -41,7 +41,7 @@ export default class UserProfile extends React.Component {
|
|||||||
UserStore.removeChangeListener(this.onChange);
|
UserStore.removeChangeListener(this.onChange);
|
||||||
}
|
}
|
||||||
onChange(userId) {
|
onChange(userId) {
|
||||||
if (userId === this.props.userId) {
|
if (!userId || userId === this.props.userId) {
|
||||||
var newState = this.getStateFromStores(this.props.userId);
|
var newState = this.getStateFromStores(this.props.userId);
|
||||||
if (!Utils.areStatesEqual(newState, this.state)) {
|
if (!Utils.areStatesEqual(newState, this.state)) {
|
||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user