From f26ecdf4f9d91252c1e97d6dcaabc0fad9e0daa2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 26 May 2023 10:47:22 +0200 Subject: [PATCH] Don't need to pass the order through the nested view --- app/views/shopping_shared/_tabs.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shopping_shared/_tabs.html.haml b/app/views/shopping_shared/_tabs.html.haml index 299ad71567..8497416f93 100644 --- a/app/views/shopping_shared/_tabs.html.haml +++ b/app/views/shopping_shared/_tabs.html.haml @@ -13,6 +13,6 @@ %div{id: "#{tab[:name]}_panel", "data-tabs-and-panels-target": "panel #{'default' if tab[:default]}" } .page-view - if tab[:custom] - = render "shopping_shared/tabs/custom", order: @order + = render "shopping_shared/tabs/custom" - else = render "shopping_shared/tabs/#{tab[:name]}"