add5
This commit is contained in:
@@ -1013,6 +1013,16 @@ export class Mattermost implements INodeType {
|
||||
delete attachment.fields;
|
||||
}
|
||||
}
|
||||
if (attachment.actions !== undefined) {
|
||||
if (attachment.actions.item !== undefined) {
|
||||
// Move the field-content up
|
||||
// @ts-ignore
|
||||
attachment.actions = attachment.actions.item;
|
||||
} else {
|
||||
// If it does not have any items set remove it
|
||||
delete attachment.actions;
|
||||
}
|
||||
}
|
||||
}
|
||||
const util = require('util');
|
||||
console.log('&&&&');
|
||||
|
||||
Reference in New Issue
Block a user