Browse Source

Remove has property check

pull/198/head
Derek Begnoche 8 years ago
parent
commit
9b83e15990
  1. 2
      src/Squidex/app/features/content/pages/content/content-page.component.ts

2
src/Squidex/app/features/content/pages/content/content-page.component.ts

@ -261,7 +261,6 @@ export class ContentPageComponent implements CanComponentDeactivate, OnDestroy,
} }
} else { } else {
for (const field of this.schema.fields) { for (const field of this.schema.fields) {
if (field.properties.hasOwnProperty('defaultValue')) {
const defaultValue = field.defaultValue(); const defaultValue = field.defaultValue();
if (defaultValue) { if (defaultValue) {
const fieldForm = <FormGroup>this.contentForm.get(field.name); const fieldForm = <FormGroup>this.contentForm.get(field.name);
@ -276,5 +275,4 @@ export class ContentPageComponent implements CanComponentDeactivate, OnDestroy,
} }
} }
} }
}
} }
Loading…
Cancel
Save