mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
add10
This commit is contained in:
parent
bfc8186578
commit
35d75df1f3
|
@ -1012,7 +1012,9 @@ export class Mattermost implements INodeType {
|
||||||
// If it does not have any items set remove it
|
// If it does not have any items set remove it
|
||||||
delete attachment.fields;
|
delete attachment.fields;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
}
|
||||||
|
for (const attachment of attachments) {
|
||||||
if (attachment.actions !== undefined) {
|
if (attachment.actions !== undefined) {
|
||||||
if (attachment.actions.item !== undefined) {
|
if (attachment.actions.item !== undefined) {
|
||||||
// Move the field-content up
|
// Move the field-content up
|
||||||
|
@ -1022,8 +1024,8 @@ export class Mattermost implements INodeType {
|
||||||
// If it does not have any items set remove it
|
// If it does not have any items set remove it
|
||||||
delete attachment.actions;
|
delete attachment.actions;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
console.log('&&&&');
|
console.log('&&&&');
|
||||||
//console.dir(attachments);
|
//console.dir(attachments);
|
||||||
|
|
Loading…
Reference in a new issue