We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3594edf commit 3249775Copy full SHA for 3249775
src/fields/abstractField.js
@@ -29,8 +29,11 @@ export default {
29
cache: false,
30
get() {
31
let val;
32
- if (isFunction(objGet(this.schema, 'get'))) val = this.schema.get(this.model);
33
- else val = objGet(this.model, this.schema.model);
+ if (isFunction(objGet(this.schema, 'get'))) {
+ val = this.schema.get(this.model);
34
+ } else {
35
+ val = objGet(this.model, this.schema.model);
36
+ }
37
38
return this.formatValueToField(val);
39
},
0 commit comments