Replace some fallback values to match the value type (#1421)

This commit is contained in:
lublak
2021-03-08 18:45:35 +01:00
committed by GitHub
parent 5a214fb4aa
commit 5da61ef252
6 changed files with 8 additions and 8 deletions

View File

@@ -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');