Set subdomain to "__unset__" if it empty
This is to prevent invalid network requests with an empty subdomain.
This commit is contained in:
@@ -12,7 +12,7 @@ class Options extends Component {
|
||||
@observable isSuccess = false;
|
||||
|
||||
componentDidMount() {
|
||||
getSettings().then(({ subdomain, apiKey }) => {
|
||||
getSettings(false).then(({ subdomain, apiKey }) => {
|
||||
this.subdomain = subdomain || ""
|
||||
this.apiKey = apiKey || ""
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user