Fix pagination in Active table

This commit is contained in:
Ken Hibino
2022-03-02 05:45:53 -08:00
parent 89ec56fde9
commit 3014f78023
3 changed files with 9 additions and 2 deletions

View File

@@ -90,6 +90,7 @@ type ReduxProps = ConnectedProps<typeof connector>;
interface Props {
queue: string; // name of the queue
totalTaskCount: number; // total number of active tasks
}
function ActiveTasksTable(props: Props & ReduxProps) {
@@ -251,7 +252,7 @@ function ActiveTasksTable(props: Props & ReduxProps) {
<TablePagination
rowsPerPageOptions={rowsPerPageOptions}
colSpan={columns.length + 1}
count={props.tasks.length}
count={props.totalTaskCount}
rowsPerPage={pageSize}
page={page}
SelectProps={{