Skip to content

Commit

Permalink
Pass allowed parameters and double check for base route whether there…
Browse files Browse the repository at this point in the history
… are no filters added
  • Loading branch information
HDinger committed Jun 28, 2024
1 parent 5673cf4 commit c07cf31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/menus/submenu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ def selected?(query_params)
end
end

if query_params.empty? && params[:filters].present?
return false
end

true
end

Expand Down
2 changes: 1 addition & 1 deletion modules/meeting/app/views/meetings/menus/_menu.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= turbo_frame_tag "meeting_sidemenu",
src: @project.present? ? menu_project_meetings_path(@project) : meetings_menu_path(),
src: @project.present? ? menu_project_meetings_path(@project, **params.permit(:filters, :sort)) : meetings_menu_path(**params.permit(:filters, :sort)),
target: '_top',
data: { turbo: false },
loading: :lazy %>

0 comments on commit c07cf31

Please sign in to comment.