From e983d1cc16a370a1cf0ab3dccc47049a34ef049d Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Fri, 10 Sep 2021 14:04:02 -0400 Subject: [PATCH] 18029: Disable pagination next if list is empty Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/components/data-explorer/data-explorer.tsx | 2 ++ 1 file changed, 2 insertions(+) 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" /> :