diff --git a/assets/javascripts/reporting/filters.js b/assets/javascripts/reporting/filters.js index 235e681f0b..77d2ed0877 100644 --- a/assets/javascripts/reporting/filters.js +++ b/assets/javascripts/reporting/filters.js @@ -280,6 +280,9 @@ Reporting.Filters = { all_dependents = Reporting.Filters.get_dependents(selectBox); next_dependents = Reporting.Filters.get_dependents(selectBox, false); dependent = Reporting.Filters.which_dependent_shall_i_take(source, next_dependents); + if (!dependent) { + return; + } active_filters = Reporting.Filters.visible_filters(); if (!active_filters.include(dependent)) {