From: Stephen Smith Date: Fri, 10 Sep 2021 18:04:02 +0000 (-0400) Subject: 18029: Disable pagination next if list is empty X-Git-Tag: 2.3.0~4^2~1 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/e983d1cc16a370a1cf0ab3dccc47049a34ef049d 18029: Disable pagination next if list is empty Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/src/components/data-explorer/data-explorer.tsx b/src/components/data-explorer/data-explorer.tsx index a38d0ed6..d272e870 100644 --- a/src/components/data-explorer/data-explorer.tsx +++ b/src/components/data-explorer/data-explorer.tsx @@ -134,6 +134,8 @@ export const DataExplorer = withStyles(styles)( page={this.props.page} onChangePage={this.changePage} onChangeRowsPerPage={this.changeRowsPerPage} + // Disable next button on empty lists since that's not default behavior + nextIconButtonProps={(itemsAvailable > 0) ? {} : {disabled: true}} component="div" /> :