1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00

fix(core/oauth): select no-team by default (#4227)

This commit is contained in:
Chaim Lev-Ari 2020-08-18 11:59:52 +03:00 committed by GitHub
parent 297eea5da6
commit b3b706d88d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,5 +15,9 @@ angular.module('portainer.oauth').controller('OAuthSettingsController', function
if (ctrl.settings.AuthorizationURI !== '') {
ctrl.state.provider.authUrl = ctrl.settings.AuthorizationURI;
}
if (ctrl.settings.DefaultTeamID === 0) {
ctrl.settings.DefaultTeamID = null;
}
}
});