aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-09 11:46:05 +0200
committerhellekin <hellekin@cepheide.org>2020-10-09 11:46:49 +0200
commitf193e708285db21e9e3dffbe96c9961a9865e2db (patch)
tree4eea900f5c4b0d3368a3c64816f9a0bbe36cb6ae /app/views
parentd7030931a48c270c78181bee02613c1211e0d4fd (diff)
downloadincommon-map-f193e708285db21e9e3dffbe96c9961a9865e2db.tar.gz
Avoid errors on missing Taxonomy
Diffstat (limited to 'app/views')
-rw-r--r--app/views/resources/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
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].
<fieldset>
<%= tag.legend "Classification" %>
<%# TODO Add a taxonomy selector %>
- <%= section_select(current_agent.taxonomies.first) %>
+ <%= section_select(current_agent.taxonomies&.first || Taxonomy.first) %>
</fieldset>
<fieldset>