mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Replace some fallback values to match the value type (#1421)
This commit is contained in:
@@ -741,7 +741,7 @@ export class Slack implements INodeType {
|
||||
}
|
||||
|
||||
} else {
|
||||
const attachmentsJson = this.getNodeParameter('attachmentsJson', i, []) as string;
|
||||
const attachmentsJson = this.getNodeParameter('attachmentsJson', i, '') as string;
|
||||
const blocksJson = this.getNodeParameter('blocksJson', i, []) as string;
|
||||
if (attachmentsJson !== '' && validateJSON(attachmentsJson) === undefined) {
|
||||
throw new Error('Attachments it is not a valid json');
|
||||
|
||||
Reference in New Issue
Block a user