Skip to content

Commit

Permalink
handle no data for pt level report
Browse files Browse the repository at this point in the history
Signed-off-by: anchit-chandran <[email protected]>
  • Loading branch information
anchit-chandran committed Jan 3, 2025
1 parent c283697 commit 7596eac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</div>
</div>

<div class="flex overflow-y-auto h-[60vh] w-full" id="pt_level_report_table">
<div class="flex overflow-y-auto {% if table_data.row_data %}h-[60vh]{% endif %} w-full" id="pt_level_report_table">
<table class="table-auto w-full text-xs text-center text-gray-500 mb-5 font-montserrat overflow-x-auto">
<thead class="uppercase bg-rcpch_dark_blue text-white sticky top-0 z-10">
<tr>
Expand All @@ -53,7 +53,7 @@
</thead>
<tbody>

{% if table_data %}
{% if table_data.row_data %}
{% for pt_pk, results in table_data.row_data.items %}
<tr class="bg-white border-b hover:bg-gray-100">
{% for kpi_attr_name in table_data.headers %}
Expand Down Expand Up @@ -87,8 +87,8 @@
</tr>
{% endfor %}
{% else %}
<tr class="bg-white border-b">
<td class="px-6 py-4">No data available</td>
<tr class="bg-white border-b" >
<td class="px-6 py-4" colspan="{{ text.headers|length }}">No data available</td>
</tr>
{% endif %}

Expand Down

0 comments on commit 7596eac

Please sign in to comment.