Skip to content

Commit

Permalink
Fall back to empty arrays in tool-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
OleVik committed Mar 22, 2022
1 parent 106e256 commit cc7251b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.0.0
## 23-03-2022

1. [](#bugfix)
- Fall back to empty arrays in tool-menu

# v2.0.0-beta.3
## 22-03-2022

Expand Down
3 changes: 1 addition & 2 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Project Space
version: 2.0.0-beta.3
testing: true
version: 2.0.0
description: Visualize projects in an organized manner, as notes on a board.
icon: sticky-note
author:
Expand Down
6 changes: 3 additions & 3 deletions templates/partials/tools.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,19 @@
<h4 class="nav-subtitle">{{ 'THEME_PROJECTSPACE.TOOLS.FILTER.MENU'|t }}</h4>
{% if taxonomylist %}
<select id="filter-category" name="category[]" class="filter" multiple="multiple">
{% for category in theme.categories %}
{% for category in theme.categories|default([]) %}
<option value="{{ category }}" {% if in_array_any([category], params.category) %}selected{% endif %}>{{ category }}</option>
{% endfor %}
</select>
<select id="filter-tag" name="tag[]" class="filter" multiple="multiple">
{% for tag, count in taxonomylist.get.tag %}
{% for tag, count in taxonomylist.get.tag|default([]) %}
<option value="{{ tag }}" {% if in_array_any([tag], params.tag) %}selected{% endif %}>{{ tag }}</option>
{% endfor %}
</select>
{% endif %}
<div class="filter-color-container">
<select id="filter-color" name="color[]" class="filter" multiple="multiple">
{% for key in config.theme.colors|map(p => "#{p.name}") %}
{% for key in config.theme.colors|default([])|map(p => "#{p.name}") %}
<option value="{{ key }}" {% if in_array_any([key], params.color) %}selected{% endif %}>{{ key }}</option>
{% endfor %}
</select>
Expand Down

0 comments on commit cc7251b

Please sign in to comment.