Skip to content

Commit

Permalink
remove check for getDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
haroun committed Aug 1, 2023
1 parent 69b563b commit 8f7a975
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,6 @@ export default {
},
getDefault() {
const object = {};
if (this.readOnly) {
return object;
}
this.field.schema.forEach(field => {
if (field.name.startsWith('_')) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ export default {
},
getDefault() {
const widget = {};
if (this.readOnly) {
return widget;
}
this.schema.forEach(field => {
if (field.name.startsWith('_')) {
return;
Expand Down

0 comments on commit 8f7a975

Please sign in to comment.