@barchart/portfolio-api-common 1.0.169 → 1.0.170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -248,9 +248,7 @@ module.exports = (() => {
248
248
  delete this._portfolios[portfolio.portfolio];
249
249
 
250
250
  Object.keys(this._trees).forEach((key) => {
251
- const tree = this._tree[key];
252
-
253
- tree.walk((group, groupNode) => {
251
+ this._trees[key].walk((group, groupNode) => {
254
252
  if (group.definition.type === PositionLevelType.PORTFOLIO && group.key === PositionLevelDefinition.getKeyForPortfolioGroup(portfolio)) {
255
253
  groupNode.sever();
256
254
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.169",
3
+ "version": "1.0.170",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -964,9 +964,7 @@ module.exports = (() => {
964
964
  delete this._portfolios[portfolio.portfolio];
965
965
 
966
966
  Object.keys(this._trees).forEach((key) => {
967
- const tree = this._tree[key];
968
-
969
- tree.walk((group, groupNode) => {
967
+ this._trees[key].walk((group, groupNode) => {
970
968
  if (group.definition.type === PositionLevelType.PORTFOLIO && group.key === PositionLevelDefinition.getKeyForPortfolioGroup(portfolio)) {
971
969
  groupNode.sever();
972
970
  }