Improved VisitsTable test

This commit is contained in:
Alejandro Celaya
2021-03-28 16:06:37 +02:00
parent eabd7d9ecb
commit 859cd9e5e3
2 changed files with 16 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ const VisitsTable = ({
</tr>
</thead>
<tbody>
{(!resultSet.visitsGroups[page - 1] || resultSet.visitsGroups[page - 1].length === 0) && (
{!resultSet.visitsGroups[page - 1]?.length && (
<tr>
<td colSpan={isOrphanVisits ? 8 : 7} className="text-center">
No visits found with current filtering