satisfy the linter
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
fe6cc03492ed34edac4d6ce72341e99ba1004887- Parents
-
cc2f7b1 - Tree
de68835
fe6cc03
fe6cc03492ed34edac4d6ce72341e99ba1004887cc2f7b1
de68835| Status | File | + | - |
|---|---|---|---|
| M |
app/memorial/conflict/[id]/page.tsx
|
0 | 1 |
app/memorial/conflict/[id]/page.tsxmodified@@ -45,7 +45,6 @@ useEffect(() => { | |||
| 45 | 45 | ||
| 46 | // Calculate paginated data | 46 | // Calculate paginated data |
| 47 | const totalItems = people.length; | 47 | const totalItems = people.length; |
| 48 | - const totalPages = Math.ceil(totalItems / itemsPerPage); | ||
| 49 | const startIndex = (currentPage - 1) * itemsPerPage; | 48 | const startIndex = (currentPage - 1) * itemsPerPage; |
| 50 | const endIndex = startIndex + itemsPerPage; | 49 | const endIndex = startIndex + itemsPerPage; |
| 51 | const paginatedPeople = people.slice(startIndex, endIndex); | 50 | const paginatedPeople = people.slice(startIndex, endIndex); |