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