mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Fix automatic credential selection when credentials are shared (#5020)
* fix: fix default credentials when inserting nodes * fix: update default without sharing * fix: fix clearing credential bug, automatically selecting shared cred bug * fix: include sharable creds in automatic selections * fix: update getter * fix: refactor subscribe logic, fix update bug * fix: remove unnessary import * format: prettier
This commit is contained in:
@@ -1714,7 +1714,7 @@ export default mixins(
|
||||
const credentialPerType =
|
||||
nodeTypeData.credentials &&
|
||||
nodeTypeData.credentials
|
||||
.map((type) => this.credentialsStore.getCredentialsByType(type.name))
|
||||
.map((type) => this.credentialsStore.getUsableCredentialByType(type.name))
|
||||
.flat();
|
||||
|
||||
if (credentialPerType && credentialPerType.length === 1) {
|
||||
|
||||
Reference in New Issue
Block a user