Hotfix: Fixing app types variants (fixes Hubspot) (#3176)

* Fixing Hubspot

* Comment
pull/3181/head
Leo Giovanetti 2022-06-28 13:36:19 -03:00 committed by GitHub
parent 9b2ad3f350
commit e1e369de9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,13 @@ export function deriveAppDictKeyFromType(appType: string, dict: Record<string, u
return appTypeVariant2; return appTypeVariant2;
} }
// Transform as last resort removing all underscores, applies to `hubspot_other_calendar` to be `hubsporothercalendar`
const appTypeVariant3 = appType.replace(/_/g, "");
handlers = dict[appTypeVariant3];
if (handlers) {
return appTypeVariant3;
}
return appType; return appType;
// const categories = ["video", "other", "calendar", "web3", "payment", "messaging"]; // const categories = ["video", "other", "calendar", "web3", "payment", "messaging"];