更新了一个bug
This commit is contained in:
parent
28d1579d4d
commit
43b1f61f4a
|
|
@ -459,7 +459,8 @@ class ListNode extends EntityNode {
|
||||||
case 'c': {
|
case 'c': {
|
||||||
const { e, d } = record;
|
const { e, d } = record;
|
||||||
if (e === this.entity) {
|
if (e === this.entity) {
|
||||||
const filter = this.constructFilters(true, true, true);
|
const filters = this.constructFilters(true, true, true);
|
||||||
|
const filter = filters && combineFilters(e, this.schema, filters);
|
||||||
if (d instanceof Array) {
|
if (d instanceof Array) {
|
||||||
d.forEach((dd) => tryAddRowToList(dd.id, filter));
|
d.forEach((dd) => tryAddRowToList(dd.id, filter));
|
||||||
}
|
}
|
||||||
|
|
@ -514,7 +515,8 @@ class ListNode extends EntityNode {
|
||||||
const { d } = record;
|
const { d } = record;
|
||||||
for (const entity in d) {
|
for (const entity in d) {
|
||||||
if (entity === this.entity) {
|
if (entity === this.entity) {
|
||||||
const filter = this.constructFilters(true, true, true);
|
const filters = this.constructFilters(true, true, true);
|
||||||
|
const filter = filters && combineFilters(entity, this.schema, filters);
|
||||||
for (const id in d[entity]) {
|
for (const id in d[entity]) {
|
||||||
tryAddRowToList(id, filter);
|
tryAddRowToList(id, filter);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -462,7 +462,8 @@ class ListNode extends EntityNode {
|
||||||
case 'c': {
|
case 'c': {
|
||||||
const { e, d } = record;
|
const { e, d } = record;
|
||||||
if (e === this.entity) {
|
if (e === this.entity) {
|
||||||
const filter = this.constructFilters(true, true, true);
|
const filters = this.constructFilters(true, true, true);
|
||||||
|
const filter = filters && (0, filter_1.combineFilters)(e, this.schema, filters);
|
||||||
if (d instanceof Array) {
|
if (d instanceof Array) {
|
||||||
d.forEach((dd) => tryAddRowToList(dd.id, filter));
|
d.forEach((dd) => tryAddRowToList(dd.id, filter));
|
||||||
}
|
}
|
||||||
|
|
@ -517,7 +518,8 @@ class ListNode extends EntityNode {
|
||||||
const { d } = record;
|
const { d } = record;
|
||||||
for (const entity in d) {
|
for (const entity in d) {
|
||||||
if (entity === this.entity) {
|
if (entity === this.entity) {
|
||||||
const filter = this.constructFilters(true, true, true);
|
const filters = this.constructFilters(true, true, true);
|
||||||
|
const filter = filters && (0, filter_1.combineFilters)(entity, this.schema, filters);
|
||||||
for (const id in d[entity]) {
|
for (const id in d[entity]) {
|
||||||
tryAddRowToList(id, filter);
|
tryAddRowToList(id, filter);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -580,7 +580,8 @@ class ListNode<
|
||||||
case 'c': {
|
case 'c': {
|
||||||
const { e, d } = record as CreateOpResult<ED, T>;
|
const { e, d } = record as CreateOpResult<ED, T>;
|
||||||
if (e === this.entity) {
|
if (e === this.entity) {
|
||||||
const filter = this.constructFilters(true, true, true);
|
const filters = this.constructFilters(true, true, true);
|
||||||
|
const filter = filters && combineFilters(e, this.schema, filters);
|
||||||
if (d instanceof Array) {
|
if (d instanceof Array) {
|
||||||
d.forEach(
|
d.forEach(
|
||||||
(dd) => tryAddRowToList(dd.id, filter)
|
(dd) => tryAddRowToList(dd.id, filter)
|
||||||
|
|
@ -639,7 +640,8 @@ class ListNode<
|
||||||
const { d } = record as SelectOpResult<ED>;
|
const { d } = record as SelectOpResult<ED>;
|
||||||
for (const entity in d) {
|
for (const entity in d) {
|
||||||
if (entity as keyof ED === this.entity) {
|
if (entity as keyof ED === this.entity) {
|
||||||
const filter = this.constructFilters(true, true, true);
|
const filters = this.constructFilters(true, true, true);
|
||||||
|
const filter = filters && combineFilters(entity, this.schema, filters);
|
||||||
for (const id in d[entity]) {
|
for (const id in d[entity]) {
|
||||||
tryAddRowToList(id, filter);
|
tryAddRowToList(id, filter);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue