diff --git a/static/js/graphing.js b/static/js/graphing.js index 95d76d1b4..39adc9aa3 100644 --- a/static/js/graphing.js +++ b/static/js/graphing.js @@ -368,8 +368,8 @@ ImageHistoryTree.prototype.setTag_ = function(tagName) { // Update the state of each existing node to no longer be highlighted. if (this.currentImage_) { - var currentNode = imageByDBID[this.currentImage_.dbid]; - this.markPath_(currentNode, false); + var currentNode = imageByDBID[this.currentImage_.dbid]; + this.markPath_(currentNode, false); } // Find the new current image (if any). @@ -379,8 +379,8 @@ ImageHistoryTree.prototype.setTag_ = function(tagName) { // Update the state of the new node path. if (this.currentImage_) { - var currentNode = imageByDBID[this.currentImage_.dbid]; - this.markPath_(currentNode, true); + var currentNode = imageByDBID[this.currentImage_.dbid]; + this.markPath_(currentNode, true); } // Ensure that the children are in the correct order.