diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index eb39b80c05a..fc2ae459243 100644 --- a/ui/scripts/ui/widgets/detailView.js +++ b/ui/scripts/ui/widgets/detailView.js @@ -846,7 +846,7 @@ context: context }) : true ) : true; - if ($actions.find('div.action').size() || (detailViewArgs.viewAll && showViewAll)) { + if ($actions && ($actions.find('div.action').size() || (detailViewArgs.viewAll && showViewAll))) { $actions.prependTo($firstRow.closest('div.detail-group').closest('.details')); } if (detailViewArgs.viewAll && showViewAll) {