mirror of https://github.com/rancher/ui.git
Fixing GKE cluster edit
A guard was implemented incorrectly, it wasn't appropriately handling the case where oauthScopes were empty. rancher/rancher#28555
This commit is contained in:
parent
2d77354093
commit
20f62cda59
|
|
@ -133,7 +133,7 @@ const oauthScopesMapper = {
|
|||
}
|
||||
},
|
||||
unmapOauthScopes(oauthScopes) {
|
||||
const containsUrls = !oauthScopes || oauthScopes.length > 0;
|
||||
const containsUrls = oauthScopes && oauthScopes.length > 0;
|
||||
|
||||
if (!containsUrls) {
|
||||
return { oauthScopesSelection: OAUTH_SCOPE_OPTIONS.DEFAULT };
|
||||
|
|
|
|||
Loading…
Reference in New Issue