diff --git a/app/javascript/components/Reports.jsx b/app/javascript/components/Reports.jsx index cd69196995b..fe8c13e63bb 100644 --- a/app/javascript/components/Reports.jsx +++ b/app/javascript/components/Reports.jsx @@ -8,7 +8,7 @@ import Pagination from './Pagination' import PracticeFilterDropdown from './PracticeFilterDropdown' import UnconfirmedLink from './UnconfirmedLink' -export default function Reports({ all = false, userId = '', practices = false, unchecked = false, displayUserIcon = true, companyId = '', practiceId = '' }) { +export default function Reports({ all = false, userId = '', practices = false, unchecked = false, displayUserIcon = true, companyId = '', practiceId = '', displayPagination = true }) { const per = 20 const neighbours = 4 const defaultPage = parseInt(queryString.parse(location.search).page) || 1 @@ -73,7 +73,7 @@ export default function Reports({ all = false, userId = '', practices = false, u /> )}
- {data.totalPages > 1 && ( + {data.totalPages > 1 && displayPagination && ( )} - {data.totalPages > 1 && ( + {data.totalPages > 1 && displayPagination && (