Skip to content

Commit

Permalink
Correct mistake in hoverNodeId
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Jul 12, 2016
1 parent 3f4cf7f commit b8dbd6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/miq_dynatree.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function hoverNodeId(id) {
var nid = ids[ids.length - 1]; // Get the last part of the node id
var leftNid = nid.split('-')[0];
var rightNid = nid.split('-')[1];
if (rightNid.match(/r/)) {
if (typeof rightNid !== 'undefined' && rightNid.match(/r/)) {
nid = sprintf("%s-%s%012d", leftNid, rightNid.split('r')[0], rightNid.split('r')[1]);
}
return ((leftNid == 'v' || // Check for VM node
Expand Down

0 comments on commit b8dbd6f

Please sign in to comment.