Skip to content

Commit

Permalink
Fix logic error in selectNodeById
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 committed May 14, 2019
1 parent 1e4ca18 commit 66cd4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trendlines/static/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function treeChanged(e, data) {
* (b) the jsTree object has fully loaded.
*/
function selectNodeById(tree, metricId) {
if (typeof metricId === 'undefined') {
if (typeof metricId !== 'undefined') {
// We were given a metric ID, so let's select it in the jstree
tree.jstree('select_node', metricId);
}
Expand Down

0 comments on commit 66cd4dd

Please sign in to comment.