show 'No Reports Found' message when task list is empty and loading is complete

This commit is contained in:
Pramod Mahajan 2025-05-14 15:35:55 +05:30 committed by Gitea Admin
parent ce4b517ce5
commit 2ebd1a074f

View File

@ -187,6 +187,13 @@ const DailyTask = () => {
</td>
</tr>
)}
{!task_loading && TaskList.length === 0 && (
<tr>
<td colSpan={7} className="text-center">
<p>No Reports Found</p>
</td>
</tr>
)}
{dates.map((date, i) => {
return (
<React.Fragment key={i}>