From f193e708285db21e9e3dffbe96c9961a9865e2db Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 9 Oct 2020 11:46:05 +0200 Subject: Avoid errors on missing Taxonomy --- app/views/resources/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/resources/_form.html.erb b/app/views/resources/_form.html.erb index fe5f532..89745bd 100644 --- a/app/views/resources/_form.html.erb +++ b/app/views/resources/_form.html.erb @@ -29,7 +29,7 @@ La description _peut_ comporter du [Markdown].
<%= tag.legend "Classification" %> <%# TODO Add a taxonomy selector %> - <%= section_select(current_agent.taxonomies.first) %> + <%= section_select(current_agent.taxonomies&.first || Taxonomy.first) %>
-- cgit v1.2.3