This commit is contained in:
Miłosz Szewczak 2020-04-12 23:23:58 +02:00 committed by GitHub
parent 8c363d1144
commit 32c52b6ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1042,6 +1042,7 @@ export class Mattermost implements INodeType {
if (attaction.integration.item !== undefined) {
//console.log('integration items');
attaction.integration = attaction.integration.item;
var tmpintegration = {};
for (const attactioninteg of attaction.integration) {
//console.log(attactioninteg);
if (attactioninteg.context.property !== undefined) {
@ -1054,7 +1055,10 @@ export class Mattermost implements INodeType {
delete attactioninteg.context ;
attactioninteg.context = tmpcontex ;
}
Object.assign(tmpintegration, attactioninteg);
}
delete attaction.integrations;
attaction.integrations=tmpintegration;
}
}
};