Skip to content

Commit 4181f74

Browse files
Update ui/src/store/modules/user.js
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
1 parent a9fecd6 commit 4181f74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/store/modules/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ const user = {
420420
})
421421

422422
api('listLdapConfigurations').then(response => {
423-
const ldapEnable = ((response && response.ldapconfigurationresponse && response.ldapconfigurationresponse.count) || 0) > 0
423+
const ldapEnable = (response && response.ldapconfigurationresponse && response.ldapconfigurationresponse.count > 0)
424424
commit('SET_LDAP', ldapEnable)
425425
}).catch(ignored => {
426426
commit('SET_LDAP', false)

0 commit comments

Comments
 (0)