Skip to content

Commit

Permalink
fix(relations): hide empty relations tables
Browse files Browse the repository at this point in the history
If the table contains no data, it's better to now show it at all instead
of showing empty tables.

Closes: #1543
  • Loading branch information
b1rger committed Jan 29, 2025
1 parent aca77f6 commit 8f13605
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apis_core/relations/templates/relations/list_relations.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

{% block relations_list %}
{% relations_list_table relations target as table %}
{% render_table table %}
{% if table.data %}
{% render_table table %}
{% endif %}
{% endblock relations_list %}

{% block relations_create %}
Expand Down

0 comments on commit 8f13605

Please sign in to comment.