Browse Source

fixing bug with resources without any linked resources

joel
Simon Bowie 2 years ago
parent
commit
1db5b850f4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      web/app/templates/edit.html

+ 1
- 1
web/app/templates/edit.html View File

@@ -100,7 +100,7 @@
<select name="linked_resources" id="linked_resources" aria-label="Linked resources" class="selectpicker" data-live-search="true" multiple>
{% for resource_dropdown in resource_dropdown %}
{% if resource_dropdown['type'] != 'practice' %}
{% if resource_dropdown in links %}
{% if links and resource_dropdown in links %}
<option value="{{ resource_dropdown['id'] }}" selected>{{ resource_dropdown['name'] }}</option>
{% else %}
<option value="{{ resource_dropdown['id'] }}">{{ resource_dropdown['name'] }}</option>

Loading…
Cancel
Save