Skip to content

Commit 0f451f6

Browse files
committed
fix(uc): update uc output builder total when removing
1 parent 6542279 commit 0f451f6

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
- Introduce `NotImplementedError` for better semantics and more meaningful error messages
1515
- Init `i18nManager` in `MCPServerBooter` and `NodeCoreCLIManager` : you can remove any initialization made before executing those
1616

17+
**Fixed**
18+
19+
- Update `UCOutputBuilder` total when removing
20+
1721
**Misc**
1822

1923
- Extract server targets functions for better reusability

dist/esm/uc/helpers/UCOutputBuilder.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export class UCOutputBuilder {
5151
const idx = this.output.parts._0.items.findIndex(predicate);
5252
if (idx > -1) {
5353
this.output.parts._0.items.splice(idx, 1);
54+
this.output.parts._0.total -= 1;
5455
}
5556
return this;
5657
}

0 commit comments

Comments
 (0)