File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/orchestrator-ui-components/src/components/WfoProcessList Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from 'react';
22
33import { useTranslations } from 'next-intl' ;
44import Link from 'next/link' ;
5+ import { useRouter } from 'next/router' ;
56
67import {
78 FilterQuery ,
@@ -99,6 +100,7 @@ export const WfoProcessesList = ({
99100 const t = useTranslations ( 'processes.index' ) ;
100101 const tError = useTranslations ( 'errors' ) ;
101102 const { showToastMessage } = useShowToastMessage ( ) ;
103+ const router = useRouter ( ) ;
102104
103105 const defaultTableColumns : WfoAdvancedTableColumnConfig < ProcessListItem > = {
104106 workflowName : {
@@ -153,14 +155,12 @@ export const WfoProcessesList = ({
153155 columnType : ColumnType . DATA ,
154156 label : t ( 'subscriptions' ) ,
155157 width : '425px' ,
156- renderData : ( { page : subscriptions } ) => (
158+ renderData : ( { page : subscriptions } , { processId } ) => (
157159 < WfoProcessListSubscriptionsCell
158160 subscriptions = { subscriptions }
159161 numberOfSubscriptionsToRender = { 1 }
160162 onMoreSubscriptionsClick = { ( ) =>
161- console . log ( 'Show modal for more subscriptions:' , {
162- subscriptions,
163- } )
163+ router . push ( `${ PATH_WORKFLOWS } /${ processId } ` )
164164 }
165165 />
166166 ) ,
You can’t perform that action at this time.
0 commit comments