@barchart/portfolio-api-common 1.0.182 → 1.0.183

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.
@@ -611,7 +611,9 @@ module.exports = (() => {
611
611
  }));
612
612
 
613
613
  addGroupBinding.call(this, group, group.registerMarketPercentChangeHandler(() => {
614
- groupTree.getParent().walk((childGroup) => childGroup.refreshMarketPercent());
614
+ if (!groupTree.getIsRoot()) {
615
+ groupTree.getParent().walk((childGroup) => childGroup.refreshMarketPercent());
616
+ }
615
617
  }));
616
618
  }
617
619
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.182",
3
+ "version": "1.0.183",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1327,7 +1327,9 @@ module.exports = (() => {
1327
1327
  }));
1328
1328
 
1329
1329
  addGroupBinding.call(this, group, group.registerMarketPercentChangeHandler(() => {
1330
- groupTree.getParent().walk((childGroup) => childGroup.refreshMarketPercent());
1330
+ if (!groupTree.getIsRoot()) {
1331
+ groupTree.getParent().walk((childGroup) => childGroup.refreshMarketPercent());
1332
+ }
1331
1333
  }));
1332
1334
  }
1333
1335