Explorar o código

HUE-6807 [search] Fix undefined variable in the facet builder

Enrico Berti %!s(int64=8) %!d(string=hai) anos
pai
achega
a81e090
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      desktop/libs/dashboard/src/dashboard/facet_builder.py

+ 3 - 0
desktop/libs/dashboard/src/dashboard/facet_builder.py

@@ -145,6 +145,9 @@ def _compute_range_facet(widget_type, stat_facet, properties, start=None, end=No
         gap = '+1YEARS'
       else:
         gap = '+10YEARS'
+    else:
+      stats_min = stat_facet['min']
+      stats_max = stat_facet['max']
 
     properties.update({
       'min': stats_min,