mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(editor): Fix most ts errors in credential components (no-changelog) (#9576)
This commit is contained in:
@@ -105,8 +105,8 @@ export default defineComponent({
|
||||
},
|
||||
props: {
|
||||
credential: {
|
||||
type: Object as PropType<ICredentialsResponse>,
|
||||
required: true,
|
||||
type: Object as PropType<ICredentialsResponse | null>,
|
||||
default: null,
|
||||
},
|
||||
credentialId: {
|
||||
type: String,
|
||||
@@ -162,7 +162,7 @@ export default defineComponent({
|
||||
return this.credentialsStore.getCredentialOwnerNameById(`${this.credentialId}`);
|
||||
},
|
||||
isCredentialSharedWithCurrentUser(): boolean {
|
||||
return (this.credentialData.sharedWithProjects || []).some((sharee: IUser) => {
|
||||
return (this.credentialData.sharedWithProjects ?? []).some((sharee: IUser) => {
|
||||
return sharee.id === this.usersStore.currentUser?.id;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user