We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9b85ef commit a9fecd6Copy full SHA for a9fecd6
1 file changed
ui/src/store/modules/user.js
@@ -554,7 +554,7 @@ const user = {
554
UpdateLdapConfigurationFlag ({ commit }) {
555
return new Promise((resolve, reject) => {
556
api('listLdapConfigurations').then(response => {
557
- const ldapEnable = ((response && response.ldapconfigurationresponse && response.ldapconfigurationresponse.count) || 0) > 0
+ const ldapEnable = (response && response.ldapconfigurationresponse && response.ldapconfigurationresponse.count > 0)
558
commit('SET_LDAP', ldapEnable)
559
resolve(ldapEnable)
560
}).catch(error => {
0 commit comments