Allow the server url to be cleared (#2942)

* Allow the server url to be cleared

* Remove getDerivedStateFromProps
This commit is contained in:
Elias Nahum 2019-07-02 10:33:40 -04:00 committed by GitHub
parent 614e6da142
commit 20bcb9d44a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,16 +67,6 @@ export default class SelectServer extends PureComponent {
intl: intlShape.isRequired,
};
static getDerivedStateFromProps(props, state) {
if (props.serverUrl && !state.url) {
return {
url: props.serverUrl,
};
}
return null;
}
constructor(props) {
super(props);