From 2e616a9e315c10e2b9cb254a7b89bd38c107ae27 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 19 Jan 2020 18:07:39 +0100 Subject: [PATCH] Fix conditional display of order cycle selection element --- app/views/shopping_shared/_order_cycles.html.haml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/shopping_shared/_order_cycles.html.haml b/app/views/shopping_shared/_order_cycles.html.haml index 6fab77ffe9..402f09a4e6 100644 --- a/app/views/shopping_shared/_order_cycles.html.haml +++ b/app/views/shopping_shared/_order_cycles.html.haml @@ -1,8 +1,7 @@ - content_for :injection_data do = inject_current_order_cycle -%ordercycle{"ng-controller" => "OrderCycleCtrl"} - - - unless no_open_order_cycles? +- unless no_open_order_cycles? + %ordercycle{"ng-controller" => "OrderCycleCtrl"} %form.custom = yield :order_cycle_form