Fix defaults listing

Base symbol was displayed twice when it existed as default and
non-default and both of them had at least one subunit.
Also: sorting by base_id yielded non-alphabetic order in such case.
This commit is contained in:
2024-11-27 19:54:50 +01:00
parent f9bd81c6ab
commit 1fedd70fe5
2 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
<%= tag.tr do %>
<td class="<%= class_names({subunit: unit.base,
grayed: unit.default? && !unit.portable.nil? }) %>">
<td class="<%= class_names({subunit: unit.base, grayed: unit.default?}) %>">
<%= unit %>
</td>