This commit is contained in:
Miłosz Szewczak 2020-04-11 13:49:12 +02:00 committed by GitHub
parent bfc8186578
commit 35d75df1f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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