From b2ad628cca1782891f99af0c16cbcf58a4b3d326 Mon Sep 17 00:00:00 2001 From: Yarin Dekel Date: Wed, 5 Dec 2018 13:46:35 +0200 Subject: WF-fix search when status changed Issue-ID: SDC-1984 Change-Id: If91bb4d060f6765db4e7849fbc20a4192e9939b4 Signed-off-by: Yarin Dekel --- workflow-designer-ui/src/main/frontend/src/features/catalog/Catalog.js | 3 +-- .../src/main/frontend/src/features/catalog/CatalogView.jsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'workflow-designer-ui') 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({ -- cgit 1.2.3-korg