@barchart/portfolio-api-common 1.0.149 → 1.0.150

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.
@@ -243,8 +243,6 @@ module.exports = (() => {
243
243
  }
244
244
  }, false);
245
245
 
246
- const treeName = treeDefinition.name;
247
-
248
246
  if (treeDefinition.exclusionDependencies.length > 0) {
249
247
  const dependantTrees = treeDefinition.exclusionDependencies.reduce((trees, name) => {
250
248
  if (this._trees.hasOwnProperty(name)) {
@@ -257,7 +255,7 @@ module.exports = (() => {
257
255
  if (dependantTrees.length > 0) {
258
256
  let excludedItems = [ ];
259
257
 
260
- groupTree.walk((childGroup) => {
258
+ tree.walk((childGroup) => {
261
259
  if (childGroup.excluded) {
262
260
  excludedItems = excludedItems.concat(childGroup.items);
263
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.149",
3
+ "version": "1.0.150",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -959,8 +959,6 @@ module.exports = (() => {
959
959
  }
960
960
  }, false);
961
961
 
962
- const treeName = treeDefinition.name;
963
-
964
962
  if (treeDefinition.exclusionDependencies.length > 0) {
965
963
  const dependantTrees = treeDefinition.exclusionDependencies.reduce((trees, name) => {
966
964
  if (this._trees.hasOwnProperty(name)) {
@@ -973,7 +971,7 @@ module.exports = (() => {
973
971
  if (dependantTrees.length > 0) {
974
972
  let excludedItems = [ ];
975
973
 
976
- groupTree.walk((childGroup) => {
974
+ tree.walk((childGroup) => {
977
975
  if (childGroup.excluded) {
978
976
  excludedItems = excludedItems.concat(childGroup.items);
979
977
  }