@barchart/portfolio-api-common 1.0.243 → 1.0.244

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.
@@ -637,7 +637,7 @@ module.exports = (() => {
637
637
  let returnRef = null;
638
638
 
639
639
  if (groupNode) {
640
- const resultNode = groupNode.findParent(candidate => predicate(candidate));
640
+ const resultNode = groupNode.findParent((candidateGroup, candidateNode) => !candidateNode.getIsRoot() && predicate(candidateGroup));
641
641
 
642
642
  if (resultNode) {
643
643
  returnRef = resultNode.getValue();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.243",
3
+ "version": "1.0.244",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1436,7 +1436,7 @@ module.exports = (() => {
1436
1436
  let returnRef = null;
1437
1437
 
1438
1438
  if (groupNode) {
1439
- const resultNode = groupNode.findParent(candidate => predicate(candidate));
1439
+ const resultNode = groupNode.findParent((candidateGroup, candidateNode) => !candidateNode.getIsRoot() && predicate(candidateGroup));
1440
1440
 
1441
1441
  if (resultNode) {
1442
1442
  returnRef = resultNode.getValue();