This commit is contained in:
Miłosz Szewczak 2020-04-11 13:07:37 +02:00 committed by GitHub
parent 4d873da53d
commit 49b6b8a467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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