Skip to content

Commit

Permalink
Added empty table message.
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Sep 21, 2023
1 parent 2f06d16 commit 2da4cd8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
{/each}
</thead>
<tbody>
{#if !$table.getRowModel().rows.length}
<tr>
<td colspan={$table.getVisibleLeafColumns().length} class="text-center">
No data was found with the current filter.
</td>
</tr>
{/if}
{#each $table.getRowModel().rows as row}
<tr
class="hover cursor-pointer"
Expand Down

0 comments on commit 2da4cd8

Please sign in to comment.