mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
moved check from calling component to paginator
This commit is contained in:
@@ -123,7 +123,9 @@ class LinkPaginator extends React.Component<Props> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { t } = this.props;
|
||||
const { collection, t } = this.props;
|
||||
|
||||
if(collection) {
|
||||
return (
|
||||
<nav className="pagination is-centered" aria-label="pagination">
|
||||
{this.renderPreviousButton(
|
||||
@@ -139,6 +141,8 @@ class LinkPaginator extends React.Component<Props> {
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export default translate("commons")(LinkPaginator);
|
||||
|
||||
Reference in New Issue
Block a user