diff --git a/modules/@apostrophecms/doc-type/ui/apos/components/AposDocEditor.vue b/modules/@apostrophecms/doc-type/ui/apos/components/AposDocEditor.vue index acb59aa80b..352614144d 100644 --- a/modules/@apostrophecms/doc-type/ui/apos/components/AposDocEditor.vue +++ b/modules/@apostrophecms/doc-type/ui/apos/components/AposDocEditor.vue @@ -482,10 +482,6 @@ export default { }, getDefault() { const doc = {}; - if (this.readOnly || this.restoreOnly) { - return doc; - } - this.schema.forEach(field => { if (field.name.startsWith('_')) { return; diff --git a/modules/@apostrophecms/schema/ui/apos/components/AposInputRelationship.vue b/modules/@apostrophecms/schema/ui/apos/components/AposInputRelationship.vue index 2603f47828..99480d7a98 100644 --- a/modules/@apostrophecms/schema/ui/apos/components/AposInputRelationship.vue +++ b/modules/@apostrophecms/schema/ui/apos/components/AposInputRelationship.vue @@ -323,10 +323,6 @@ export default { }, getDefault() { const object = {}; - if (this.readOnly) { - return object; - } - this.field.schema.forEach(field => { if (field.name.startsWith('_')) { return; diff --git a/modules/@apostrophecms/widget-type/ui/apos/components/AposWidgetEditor.vue b/modules/@apostrophecms/widget-type/ui/apos/components/AposWidgetEditor.vue index 691b47d516..a35e3ef252 100644 --- a/modules/@apostrophecms/widget-type/ui/apos/components/AposWidgetEditor.vue +++ b/modules/@apostrophecms/widget-type/ui/apos/components/AposWidgetEditor.vue @@ -188,10 +188,6 @@ export default { }, getDefault() { const widget = {}; - if (this.readOnly) { - return widget; - } - this.schema.forEach(field => { if (field.name.startsWith('_')) { return;