diff --git a/app/views/filters/_dialog.html.erb b/app/views/filters/_dialog.html.erb index c9724f977..086d97472 100644 --- a/app/views/filters/_dialog.html.erb +++ b/app/views/filters/_dialog.html.erb @@ -77,19 +77,20 @@ <% end %> - -
  • In Stage
  • - <% workflow = Current.account.workflows.first %> - <% workflow.stages.each do |stage| %> -
  • - <%= label_tag "stage_ids_#{stage.id}", class: "btn filter__button" do %> - <%= check_box_tag "stage_ids[]", stage.id, filter.stages.include?(stage), id: "stage_ids_#{stage.id}", hidden: true %> - <%= stage.name %> - <%= image_tag "close.svg", aria: { hidden: true }, size: 24 %> - <% end %> -
  • - <% end %> -
    + <% if workflow = Current.account.workflows.first %> + +
  • In Stage
  • + <% workflow.stages.each do |stage| %> +
  • + <%= label_tag "stage_ids_#{stage.id}", class: "btn filter__button" do %> + <%= check_box_tag "stage_ids[]", stage.id, filter.stages.include?(stage), id: "stage_ids_#{stage.id}", hidden: true %> + <%= stage.name %> + <%= image_tag "close.svg", aria: { hidden: true }, size: 24 %> + <% end %> +
  • + <% end %> +
    + <% end %>
    Tagged