[home] Prevent js error when dragging to select documents
@@ -693,12 +693,14 @@ from desktop.views import _ko
allRows.each(function (idx, row) {
var boundingRect = row.getBoundingClientRect();
var boundObject = ko.dataFor(row);
+ if (boundObject) {
if ((dragStartY <= boundingRect.top && event.clientY >= boundingRect.top) ||
(event.clientY <= boundingRect.bottom && dragStartY >= boundingRect.bottom)) {
boundObject.selected(true);
} else if (!boundObject.alreadySelected) {
boundObject.selected(false);
}
+ }
});
$('.doc-browser-drag-select').css({
top: startY + 'px',
