Workflow- added getWorkflow call to catalog
[sdc/sdc-workflow-designer.git] / workflow-designer-ui / src / main / frontend / src / features / catalog / CatalogView.jsx
index 3eed4ed..6c346a2 100644 (file)
@@ -32,10 +32,22 @@ class CatalogView extends Component {
 
     componentDidMount() {
         const { clearWorkflow } = this.props;
-
         clearWorkflow();
+        this.fetchWorkflows();
     }
 
+    fetchWorkflows = () => {
+        const {
+            catalog: { sort, status, searchNameFilter },
+            handleFetchWorkflow
+        } = this.props;
+        handleFetchWorkflow({
+            sort,
+            searchNameFilter,
+            status
+        });
+    };
+
     handleAlphabeticalOrderByClick = e => {
         e.preventDefault();
 
@@ -68,6 +80,7 @@ class CatalogView extends Component {
             status: value
         });
     };
+
     handleScroll = () => {
         const {
             catalog: {