feat: defer everything until the api config is loaded #926

Merged
konrad merged 27 commits from feature/ready-state into main 2021-11-13 19:49:03 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 385f2a9a5e - Show all commits

View File

@ -88,6 +88,7 @@ export default {
methods: {
async setApiUrl() {
if (this.apiUrl === '') {
// Don't try to check and set an empty url
konrad marked this conversation as resolved Outdated

Explain why we return here

Explain why we return here

Done.

Done.
return
konrad marked this conversation as resolved Outdated

That seems like it should throw an error?

That seems like it should throw an error?

It does yeah. I've modified it so it shows an error with a "good" error message to the user instead of throwing one.

It does yeah. I've modified it so it shows an error with a "good" error message to the user instead of throwing one.
}