3.0.3-publish

This commit is contained in:
Xu Chang 2023-11-17 21:39:20 +08:00
parent fa9e8db57e
commit 8b16924d61
4 changed files with 4 additions and 4 deletions

View File

@ -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()];

View File

@ -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()];

View File

@ -9,7 +9,7 @@
"lib/**/*"
],
"dependencies": {
"oak-domain": "file:../oak-domain",
"oak-domain": "^3.0.4",
"uuid": "^8.3.2"
},
"scripts": {

View File

@ -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') {