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

* Fixing Hubspot

* Comment
This commit is contained in:
Leo Giovanetti
2022-06-28 16:36:19 +00:00
committed by GitHub
parent 9b2ad3f350
commit e1e369de9e
+7
View File
@@ -21,6 +21,13 @@ export function deriveAppDictKeyFromType(appType: string, dict: Record<string, u
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;
// const categories = ["video", "other", "calendar", "web3", "payment", "messaging"];