Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 9608dfa

Browse files
author
Shammamah Hossain
committed
Don't display pagination menu if there is only one page.
1 parent 91a0fcd commit 9608dfa

File tree

1 file changed

+1
-1
lines changed
  • src/dash-table/components/ControlledTable

1 file changed

+1
-1
lines changed

src/dash-table/components/ControlledTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ export default class ControlledTable extends PureComponent<ControlledTableProps>
869869
</div>))}
870870
</div>
871871
</div>
872-
{!this.displayPagination ? null : (
872+
{!this.displayPagination || this.lastPage() === 0 ? null : (
873873
<div className='previous-next-container'>
874874
<button className='first-page' onClick={this.loadFirst} disabled={this.props.page_current === 0}><FontAwesomeIcon icon='angle-double-left' /></button>
875875
<button className='previous-page' onClick={this.loadPrevious} disabled={this.props.page_current === 0}><FontAwesomeIcon icon='angle-left' /></button>

0 commit comments

Comments
 (0)