Skip to content

Commit

Permalink
data.Model: updateFieldsMap() => only set nested fields to false for …
Browse files Browse the repository at this point in the history
…the root call
  • Loading branch information
tobiu committed Jan 18, 2025
1 parent 165d364 commit 2890a0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/data/Model.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ class Model extends Base {
let me = this,
{fieldsMap} = me;

isRoot && fieldsMap.clear();

me.hasNestedFields = false;
if (isRoot) {
fieldsMap.clear();
me.hasNestedFields = false
}

fields.forEach(field => {
fieldsMap.set(field.name, field);
Expand Down

0 comments on commit 2890a0c

Please sign in to comment.