Skip to content

Commit

Permalink
Update JS to account for chanages to the jstree data structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 committed May 9, 2019
1 parent 9791b3f commit a0537cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trendlines/static/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function populateTree(data) {
// jsTree puts the original data structure in a nested object
// called 'original'. How original of them. Hahaha I crack myself up.
// If `url` is defined, take us there.
if (data.node.original.url !== null) {
var expected = data.node.original.url;
if (data.node.original.metric_id !== null) {
var expected = "/plot/" + data.node.original.id;
var new_href = document.location.origin + expected;

// Take the user to the plot page.
Expand Down

0 comments on commit a0537cd

Please sign in to comment.