Stop trying to get the users config when there is no user (#411)
This commit is contained in:
@@ -42,7 +42,7 @@ export class App extends Component {
|
||||
componentWillReceiveProps (nextProps) {
|
||||
const { dispatch, user } = nextProps;
|
||||
|
||||
if (this.props.user !== user) {
|
||||
if (user && this.props.user !== user) {
|
||||
dispatch(getConfig());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user