This commit is contained in:
Miłosz Szewczak
2020-04-11 13:07:37 +02:00
committed by GitHub
parent 4d873da53d
commit 49b6b8a467

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