Browse Source

Merge pull request #20193 from abpframework/auto-merge/rel-8-2/2799

Merge branch dev with rel-8.2
pull/20195/head
maliming 2 years ago
committed by GitHub
parent
commit
16df0ae071
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      npm/ng-packs/packages/schematics/src/utils/model.ts

8
npm/ng-packs/packages/schematics/src/utils/model.ts

@ -94,7 +94,13 @@ export function createImportRefsToModelReducer(params: ModelGeneratorParams) {
}
if (parseNamespace(solution, ref) !== model.namespace) {
toBeImported.push({ type: ref, isEnum: false });
const isEnumImportAvailable = toBeImported.some(importValue => {
return importValue.isEnum && importValue.type === ref;
});
if (!isEnumImportAvailable) {
toBeImported.push({ type: ref, isEnum: false });
}
}
});
});

Loading…
Cancel
Save