@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(
|
|
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
package/test/SpecRunner.js
CHANGED
|
@@ -1436,7 +1436,7 @@ module.exports = (() => {
|
|
|
1436
1436
|
let returnRef = null;
|
|
1437
1437
|
|
|
1438
1438
|
if (groupNode) {
|
|
1439
|
-
const resultNode = groupNode.findParent(
|
|
1439
|
+
const resultNode = groupNode.findParent((candidateGroup, candidateNode) => !candidateNode.getIsRoot() && predicate(candidateGroup));
|
|
1440
1440
|
|
|
1441
1441
|
if (resultNode) {
|
|
1442
1442
|
returnRef = resultNode.getValue();
|