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:
Cody Jackson 2020-08-25 16:19:03 -07:00
parent 2d77354093
commit 20f62cda59
1 changed files with 1 additions and 1 deletions

View File

@ -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 };