diff --git a/ckan/templates/package/snippets/search_form.html b/ckan/templates/package/snippets/search_form.html index 45fcfd1f8f9..62b6ad9c354 100644 --- a/ckan/templates/package/snippets/search_form.html +++ b/ckan/templates/package/snippets/search_form.html @@ -15,13 +15,12 @@
Try another search term, - browse the datasets below or add your own data.
- {% endif %}There was an error while searching. Please try again.
+{% else %} + {% if c.page.items %} + {{ h.snippet('snippets/package_list.html', packages=c.page.items, bulk_processing=c.bulk_processing) }} + {% endif %} {% endif %} - -{{ h.snippet('snippets/package_list.html', packages=c.page.items, bulk_processing=c.bulk_processing) }}