Skip to content

Commit

Permalink
Merging configs in field views
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzapp committed May 27, 2021
1 parent 1a823ee commit 64c702b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Client/Entity/View/Field/FieldBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ class FieldBase extends HashBrown.Entity.View.ViewBase {
let config = definition.config || {};

if(schema.parentId !== 'fieldBase') {
config = schema.config;
for(let key in schema.config) {
if(config[key] !== undefined) { continue; }

config[key] = schema.config[key];
}
}

let model = {
Expand Down

0 comments on commit 64c702b

Please sign in to comment.