From dcf98ee29ffe1a42ee7c09a69778dbf7e82c1ec8 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 8 Jul 2015 11:21:16 +1000 Subject: [PATCH] Fix enterprises no results for producers --- app/views/shared/components/_enterprise_no_results.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/shared/components/_enterprise_no_results.html.haml b/app/views/shared/components/_enterprise_no_results.html.haml index fe3ce2ecdc..1c8af802a2 100644 --- a/app/views/shared/components/_enterprise_no_results.html.haml +++ b/app/views/shared/components/_enterprise_no_results.html.haml @@ -1,4 +1,5 @@ -%producer.row{"ng-show" => "#{enterprises || 'filteredEnterprises'}.length == 0"} +- enterprises ||= 'filteredEnterprises' +%producer.row{"ng-show" => "#{enterprises}.length == 0"} %p.no-results Sorry, no results found for %strong {{query}}.