fix(editor): Fix issue with existing credential not opening in HTTP agent tool (#10167)
This commit is contained in:
@@ -430,7 +430,7 @@ const sidebarItems = computed(() => {
|
||||
const defaultCredentialTypeName = computed(() => {
|
||||
let defaultName = credentialTypeName.value;
|
||||
if (!defaultName || defaultName === 'null') {
|
||||
if (activeNodeType.value?.credentials) {
|
||||
if (activeNodeType.value?.credentials && activeNodeType.value.credentials.length > 0) {
|
||||
defaultName = activeNodeType.value.credentials[0].name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user