diff --git a/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts b/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts index e7071d7100..2fa678f98d 100644 --- a/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts +++ b/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts @@ -1012,7 +1012,9 @@ export class Mattermost implements INodeType { // If it does not have any items set remove it delete attachment.fields; } - }; + } + } + for (const attachment of attachments) { if (attachment.actions !== undefined) { if (attachment.actions.item !== undefined) { // Move the field-content up @@ -1022,8 +1024,8 @@ export class Mattermost implements INodeType { // If it does not have any items set remove it delete attachment.actions; } - }; - } + } + } const util = require('util'); console.log('&&&&'); //console.dir(attachments);