fixes issue with kubernetes config prompt appearing when it shouldn't (#19115)

This commit is contained in:
Jordan Reimer 2023-02-10 08:59:10 -07:00 committed by GitHub
parent db6cb78a22
commit 35f1c5cb06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@ export function withConfig() {
.queryRecord('kubernetes/config', { backend })
.then((record) => {
this.configModel = record;
this.promptConfig = false;
})
.catch((error) => {
// we need to ignore if the user does not have permission or other failures so as to not block the other operations
@ -42,6 +43,8 @@ export function withConfig() {
this.configError = error;
}
});
} else {
this.promptConfig = false;
}
}
};