From f209ca665d4dd499e038da4bbb85fdbd241a2d3c Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Fri, 19 Apr 2019 13:23:57 +0200 Subject: [PATCH] moved check from calling component to paginator --- .../ui-components/src/LinkPaginator.js | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/scm-ui-components/packages/ui-components/src/LinkPaginator.js b/scm-ui-components/packages/ui-components/src/LinkPaginator.js index 51dc75f03c..a662272b11 100644 --- a/scm-ui-components/packages/ui-components/src/LinkPaginator.js +++ b/scm-ui-components/packages/ui-components/src/LinkPaginator.js @@ -123,21 +123,25 @@ class LinkPaginator extends React.Component { } render() { - const { t } = this.props; - return ( - - ); + const { collection, t } = this.props; + + if(collection) { + return ( + + ); + } + return null; } }