aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-08-22 13:35:44 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-08-29 18:04:07 +0100
commit39fd4d22fec9425743b0a9ebced6d1b73c3d857b (patch)
tree61ec7c36ed12dd389e772dd4f5f197ef635b37a2
parenta5336887af2d62ad0accdb39da3d22192a312c07 (diff)
Do not show 9 empty rows initially.
-rw-r--r--templates/web/base/admin/extra-metadata-form.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/admin/extra-metadata-form.html b/templates/web/base/admin/extra-metadata-form.html
index d621a7d79..a68d619cf 100644
--- a/templates/web/base/admin/extra-metadata-form.html
+++ b/templates/web/base/admin/extra-metadata-form.html
@@ -69,7 +69,7 @@
[% loc('Options') %]<span class="hidden-js"> [% loc('(ignored if type is "String")') %]</span>
<ul>
[% outer_loop = loop %]
- [% values = meta.values OR [] %]
+ [% SET values = meta.item('values') ? meta.values : [] %]
[% FOREACH option IN values.merge([{}]) %]
[%# the .merge() call is so there's an empty one on the end %]
<li class="js-metadata-option [% IF loop.last %]hidden-js js-metadata-option-template[% END %]">