Browse Source

HUE-8222 [dashboard] Skip empty widgets on height equalizing

Enrico Berti 7 years ago
parent
commit
c91f86481f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

+ 1 - 1
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -4178,7 +4178,7 @@ $(document).ready(function () {
       var touched = [];
       searchViewModel.gridItems().forEach(function (existingWidget) {
         var siblings = [];
-        if (touched.indexOf(existingWidget.widgetId()) === -1) {
+        if (existingWidget.widgetId && touched.indexOf(existingWidget.widgetId()) === -1) {
           touched.push(existingWidget.widgetId());
           var biggestSize = existingWidget.size_y();
           searchViewModel.gridItems().forEach(function (siblingWidget) {