File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ async function guessPortAndTLS() {
148148 loadingGuessPortAndTLS .value = true
149149 const { changes } = await callWizard (' guessPortAndTLS' , props .configId )
150150 // Not using ldapConfigProxy to avoid triggering the save logic.
151- ldapConfigs .value [props .configId ].ldapPort = (changes ! .ldap_port as string ) ?? ' '
151+ ldapConfigs .value [props .configId ]! .ldapPort = (changes ! .ldap_port as string ) ?? ' '
152152 } finally {
153153 loadingGuessPortAndTLS .value = false
154154 }
Original file line number Diff line number Diff line change 1919 :options =" Object.keys(ldapConfigs)"
2020 :input-label =" t('user_ldap', 'Select LDAP Config')" >
2121 <template #option =" { label: configId } " >
22- {{ `${configId}: ${ldapConfigs[configId].ldapHost}` }}
22+ {{ `${configId}: ${ldapConfigs[configId]? .ldapHost ?? '' }` }}
2323 </template >
2424 <template #selected-option =" { label: configId } " >
25- {{ `${configId}: ${ldapConfigs[configId].ldapHost}` }}
25+ {{ `${configId}: ${ldapConfigs[configId]? .ldapHost ?? '' }` }}
2626 </template >
2727 </NcSelect >
2828 <NcButton
@@ -123,7 +123,8 @@ const selectedTab = ref('server')
123123const clearMappingLoading = ref (false )
124124
125125const selectedConfigHasServerInfo = computed (() => {
126- return selectedConfig .value .ldapHost !== ' '
126+ return selectedConfig .value !== undefined
127+ && selectedConfig .value .ldapHost !== ' '
127128 && selectedConfig .value .ldapPort !== ' '
128129 && selectedConfig .value .ldapBase !== ' '
129130 && selectedConfig .value .ldapAgentName !== ' '
You can’t perform that action at this time.
0 commit comments