Commit a1fd6d36 by Vladislav Lagunov

Исправления в collectFlags

parent 2ee7e715
......@@ -75,7 +75,7 @@ export class JsonApiBase<A> {
case 'Related': {
acc.fields[ty] = acc.fields[ty] || {};
acc.fields[ty][key] = true;
acc.include[path.concat(key).join('.')] = true;
if (!isEmpty(field.desc)) acc.include[path.concat(key).join('.')] = true;
for (let k in field.desc) {
if (!field.desc.hasOwnProperty(k)) continue;
go(acc, path.concat(key), field.type, k, field.desc[k]);
......@@ -85,7 +85,7 @@ export class JsonApiBase<A> {
case 'RelatedMany': {
acc.fields[ty] = acc.fields[ty] || {};
acc.fields[ty][key] = true;
acc.include[path.concat(key).join('.')] = true;
if (!isEmpty(field.children.desc)) acc.include[path.concat(key).join('.')] = true;
for (let k in field.child.desc) {
if (!field.child.desc.hasOwnProperty(k)) continue;
go(acc, path.concat(key), field.child.type, k, field.child.desc[k]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment