mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix issue when sending context parameter to Hubspot (#2035)
This commit is contained in:
@@ -91,6 +91,17 @@ export function validateJSON(json: string | undefined): any { // tslint:disable-
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
// tslint:disable-next-line: no-any
|
||||
export function clean(obj: any) {
|
||||
for (const propName in obj) {
|
||||
if (obj[propName] === null || obj[propName] === undefined || obj[propName] === '') {
|
||||
delete obj[propName];
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
export const propertyEvents = [
|
||||
'contact.propertyChange',
|
||||
'company.propertyChange',
|
||||
|
||||
Reference in New Issue
Block a user