From: Yarin Dekel Date: Wed, 5 Dec 2018 11:46:35 +0000 (+0200) Subject: WF-fix search when status changed X-Git-Tag: 1.4.0~25 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b2ad628cca1782891f99af0c16cbcf58a4b3d326;p=sdc%2Fsdc-workflow-designer.git WF-fix search when status changed Issue-ID: SDC-1984 Change-Id: If91bb4d060f6765db4e7849fbc20a4192e9939b4 Signed-off-by: Yarin Dekel --- diff --git a/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js b/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js index 3a8fae37..b675b220 100644 --- a/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js +++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js @@ -27,8 +27,7 @@ import { NEW_WORKFLOW_MODAL } from 'shared/modal/modalWrapperComponents'; import { clearWorkflowAction } from 'features/workflow/workflowConstants'; const mapStateToProps = state => ({ - catalog: state.catalog, - searchNameFilter: state.searchNameFilter + catalog: state.catalog }); const mapDispatchToProps = dispatch => ({ 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 6c346a2e..b9d6f863 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 @@ -70,8 +70,7 @@ class CatalogView extends Component { handleStatusChange = value => { const { handleFetchWorkflow, - searchNameFilter, - catalog: { sort } + catalog: { sort, searchNameFilter } } = this.props; handleFetchWorkflow({