WF-fixed navigation after archive 13/75113/2
authorYarin Dekel <yarind@amdocs.com>
Thu, 27 Dec 2018 10:40:10 +0000 (12:40 +0200)
committerAvi Gaffa <avi.gaffa@amdocs.com>
Sun, 30 Dec 2018 09:30:45 +0000 (09:30 +0000)
Issue-ID: SDC-2025
Change-Id: I111dbb94dadff3302fa866dac86d87f81c7ffe68
Signed-off-by: Yarin Dekel <yarind@amdocs.com>
workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSagas.js

index 9193c5b..8b5f04f 100644 (file)
@@ -28,7 +28,6 @@ import {
 import { setWorkflowAction } from 'features/workflow/workflowConstants';
 import { notificationActions } from 'shared/notifications/notificationsActions';
 import { fetchWorkflow } from 'features/catalog/catalogActions';
-import { WORKFLOW_STATUS } from 'features/workflow/workflowConstants';
 import { I18n } from 'react-redux-i18n';
 
 export function* getOverview({ payload }) {
@@ -61,7 +60,7 @@ export function* archiveRestoreWorkflow(action) {
         const { ...data } = action.payload;
         yield call(overviewApi.archiveRestoreWorkflow, data);
         const {
-            catalog: { sort },
+            catalog: { sort, status },
             searchNameFilter = ''
         } = yield select();
 
@@ -69,7 +68,7 @@ export function* archiveRestoreWorkflow(action) {
             fetchWorkflow({
                 sort,
                 searchNameFilter,
-                status: WORKFLOW_STATUS.ACTIVE
+                status: status
             })
         );
     } catch (e) {