diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx index 272a886f9..a5e8425d4 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx @@ -49,7 +49,7 @@ function CustomMetricTable(props: Props) { onClick(filters); } return ( -
+
(small ? 3 : 5) && !showAll return (
@@ -37,7 +38,7 @@ export default class Table extends React.PureComponent {
{ rows.take(showAll ? rows.size : (small ? 3 : 5)).map(row => (
onRowClick(e, row) : () => null} > @@ -51,8 +52,8 @@ export default class Table extends React.PureComponent {
)) }
- { !isTemplate && rows.size > (small ? 3 : 5) && !showAll && -
+ {isShowMoreButtonVisible && +