diff --git a/src/actions/WindowActions.js b/src/actions/WindowActions.js index a7a761381..52bd57861 100644 --- a/src/actions/WindowActions.js +++ b/src/actions/WindowActions.js @@ -660,7 +660,8 @@ export function createProcess({ rowId, tabId, type, - viewId + viewId, + selectedTab }) { let pid = null; @@ -676,7 +677,8 @@ export function createProcess({ rowId, tabId, type, - viewId + viewId, + selectedTab }); } catch (error) { // Close process modal in case when process start failed @@ -849,11 +851,15 @@ function getProcessData({ payload.rowId = rowId; } - if (selectedTab) { - payload.selectedTab = { - tabId: selectedTab.tabId, - rowIds: selectedTab.rowIds - }; + if (selectedTab && selectedTab.tabId && selectedTab.rowIds) { + const { tabId, rowIds } = selectedTab; + + if (tabId && rowIds) { + payload.selectedTab = { + tabId, + rowIds + }; + } } return axios.post(