aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx')
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx15
1 files changed, 11 insertions, 4 deletions
diff --git a/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
index 99cee755..78824341 100644
--- a/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
@@ -53,11 +53,14 @@ class CatalogView extends React.Component {
handleScroll = () => {
const {
- catalog: { page, sort },
+ catalog: {
+ paging: { offset },
+ sort
+ },
handleFetchWorkflow
} = this.props;
- handleFetchWorkflow(sort, page);
+ handleFetchWorkflow(sort, offset);
};
goToOverviewPage = id => {
@@ -67,7 +70,11 @@ class CatalogView extends React.Component {
render() {
const { catalog, showNewWorkflowModal } = this.props;
- const { sort, hasMore, total, results } = catalog;
+ const {
+ sort,
+ paging: { hasMore, total },
+ items
+ } = catalog;
const alphabeticalOrder = sort[NAME];
return (
@@ -85,7 +92,7 @@ class CatalogView extends React.Component {
<div className="main__content">
<AddWorkflow onClick={showNewWorkflowModal} />
<Workflows
- results={results}
+ items={items}
onWorkflowClick={this.goToOverviewPage}
/>
</div>