fix(editor): Separate cloud endpoint calls (#7312)

This PR untangles calls to cloud endpoints so failure in one of them
doesn't stop others to go through.
This commit is contained in:
Milorad FIlipović
2023-10-02 14:25:03 +02:00
committed by GitHub
parent 1691223789
commit 04dfcd73be
3 changed files with 37 additions and 17 deletions

View File

@@ -144,8 +144,9 @@ export default defineComponent({
console.log(HIRING_BANNER);
}
},
async checkForCloudPlanData() {
return this.cloudPlanStore.checkForCloudPlanData();
async checkForCloudData() {
await this.cloudPlanStore.checkForCloudPlanData();
await this.cloudPlanStore.fetchUserCloudAccount();
},
async initialize(): Promise<void> {
await this.initSettings();
@@ -237,7 +238,7 @@ export default defineComponent({
await this.authenticate();
await this.redirectIfNecessary();
void this.checkForNewVersions();
await this.checkForCloudPlanData();
await this.checkForCloudData();
void this.postAuthenticate();
this.loading = false;