fix: avoid importing generic type placeholders in schematics

pull/5137/head
Arman Ozak 4 years ago
parent 654cdb6ea8
commit 832692a238

@ -69,8 +69,9 @@ export function createImportRefsToModelReducer(params: ModelGeneratorParams) {
_interface.properties.forEach(prop => {
prop.refs.forEach(ref => {
if (parseNamespace(solution, ref) !== model.namespace)
toBeImported.push({ type: ref, isEnum: types[ref]?.isEnum });
const propType = types[ref];
if (propType && parseNamespace(solution, ref) !== model.namespace)
toBeImported.push({ type: ref, isEnum: propType?.isEnum });
});
});
});

Loading…
Cancel
Save