Allow the server url to be cleared (#2942)
* Allow the server url to be cleared * Remove getDerivedStateFromProps
This commit is contained in:
parent
614e6da142
commit
20bcb9d44a
1 changed files with 0 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue