Browse Source

Merge pull request #21951 from abpframework/issue-20239

Angular - Fixing the nullability check for proxy generation
pull/21953/head
Masum ULU 2 years ago
committed by GitHub
parent
commit
4db5e412f7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      npm/ng-packs/packages/schematics/src/utils/model.ts

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

@ -182,7 +182,7 @@ export function createRefToImportReducerCreator(params: ModelGeneratorParams) {
} }
function isOptionalProperty(prop: PropertyDef) { function isOptionalProperty(prop: PropertyDef) {
return prop.typeSimple.endsWith('?') || (prop.typeSimple === 'string' && !prop.isRequired); return prop.typeSimple.endsWith('?') || !prop.isRequired;
} }
export function parseBaseTypeWithGenericTypes(type: string): string[] { export function parseBaseTypeWithGenericTypes(type: string): string[] {

Loading…
Cancel
Save