diff --git a/etemplate/js/et2_dataview_view_rowProvider.js b/etemplate/js/et2_dataview_view_rowProvider.js index afd563bced..f8780f0395 100644 --- a/etemplate/js/et2_dataview_view_rowProvider.js +++ b/etemplate/js/et2_dataview_view_rowProvider.js @@ -252,7 +252,7 @@ var et2_dataview_rowProvider = Class.extend({ _path = []; } - if (_root != _target) + if (_root != _target && _target) { // Get the index of _target in its parent node var idx = this._nodeIndex(_target);