Skip to content

Commit

Permalink
fix js errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Wigley committed Nov 8, 2021
1 parent 3b3df78 commit 111710b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/node_selection_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ angular
if (node.resource_type == 'source') {
pre += "source:"
node_name = node.source_name + "." + node.name;
} else if (node.resource_type in ('exposure', 'metric') {
} else if (['exposure', 'metric'].indexOf(node.resource_type) > -1) {
pre += node.resource_type + ":"
node_name = node.name;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/app/services/project_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ angular

function buildMetricTree(nodes, select) {
var metrics = {}
metrics.items = []

// stick all metrics in one big folder for now
_.each(nodes, function(node) {
Expand Down

0 comments on commit 111710b

Please sign in to comment.