3.0.3-publish
This commit is contained in:
parent
fa9e8db57e
commit
8b16924d61
|
|
@ -1650,7 +1650,7 @@ export default class TreeStore extends CascadeStore {
|
|||
const result = await this.selectAsync(entity, selection2, context, Object.assign({}, option, {
|
||||
dontCollect: true,
|
||||
}));
|
||||
return typeof selection.count === 'number' ? Math.min(result.length, selection.count) : result.length;
|
||||
return typeof selection.count === 'number' && selection.count > 0 ? Math.min(result.length, selection.count) : result.length;
|
||||
}
|
||||
addToTxnNode(node, context, action) {
|
||||
const txnNode = this.activeTxnDict[context.getCurrentTxnId()];
|
||||
|
|
|
|||
|
|
@ -1652,7 +1652,7 @@ class TreeStore extends CascadeStore_1.CascadeStore {
|
|||
const result = await this.selectAsync(entity, selection2, context, Object.assign({}, option, {
|
||||
dontCollect: true,
|
||||
}));
|
||||
return typeof selection.count === 'number' ? Math.min(result.length, selection.count) : result.length;
|
||||
return typeof selection.count === 'number' && selection.count > 0 ? Math.min(result.length, selection.count) : result.length;
|
||||
}
|
||||
addToTxnNode(node, context, action) {
|
||||
const txnNode = this.activeTxnDict[context.getCurrentTxnId()];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
"lib/**/*"
|
||||
],
|
||||
"dependencies": {
|
||||
"oak-domain": "file:../oak-domain",
|
||||
"oak-domain": "^3.0.4",
|
||||
"uuid": "^8.3.2"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1988,7 +1988,7 @@ export default class TreeStore<ED extends EntityDict & BaseEntityDict> extends C
|
|||
dontCollect: true,
|
||||
}));
|
||||
|
||||
return typeof selection.count === 'number' ? Math.min(result.length, selection.count) : result.length;
|
||||
return typeof selection.count === 'number' && selection.count > 0 ? Math.min(result.length, selection.count) : result.length;
|
||||
}
|
||||
|
||||
private addToTxnNode<Cxt extends Context>(node: RowNode, context: Cxt, action: 'create' | 'update' | 'remove') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue