Remove half-broken typeName overrides (#6485)

This commit is contained in:
Jaco 2021-11-05 06:56:40 +01:00 committed by GitHub
parent 9965cba834
commit cd352e5bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,11 +85,11 @@ const components: ComponentMap = componentDef.reduce((components, { c, t }): Com
const warnList: string[] = [];
function fromDef ({ displayName, info, lookupName, sub, type, typeName }: TypeDef): string {
const nameOverride = displayName || typeName;
function fromDef ({ displayName, info, lookupName, sub, type }: TypeDef): string {
// const nameOverride = displayName || typeName;
if (nameOverride && SPECIAL_TYPES.includes(nameOverride)) {
return nameOverride;
if (displayName && SPECIAL_TYPES.includes(displayName)) {
return displayName;
} else if (type.endsWith('RuntimeSessionKeys')) {
return 'RuntimeSessionKeys';
}