@@ -15,22 +15,18 @@ import {
1515 JustifyContent ,
1616} from '@influxdata/clockface'
1717
18- // Actions For Tasks
19- import { relativeTimestampFormatter } from 'src/shared/utils/relativeTimestampFormatter'
20-
2118// Actions
19+ import { relativeTimestampFormatter } from 'src/shared/utils/relativeTimestampFormatter'
2220import { runTask , getRuns , updateTaskStatus } from 'src/tasks/actions/thunks'
2321import { isFlagEnabled } from 'src/shared/utils/featureFlag'
24-
25- // Actions For Members
2622import { getMembers } from 'src/members/actions/thunks'
2723import { getOrg } from 'src/organizations/selectors'
28-
2924import { TaskPage , setCurrentTasksPage } from 'src/tasks/actions/creators'
3025
3126// Types
3227import { ComponentColor , Button } from '@influxdata/clockface'
3328import { Task , AppState } from 'src/types'
29+ import { DEFAULT_PROJECT_NAME } from 'src/flows'
3430
3531// DateTime
3632import { DEFAULT_TIME_FORMAT } from 'src/utils/datetime/constants'
@@ -99,15 +95,19 @@ const TaskRunsCard: FC<Props> = ({task}) => {
9995 } )
10096 . then ( resp => {
10197 if ( resp . length ) {
102- setRoute ( `/orgs/${ org . id } /notebooks/${ resp [ 0 ] . notebookID } ` )
98+ setRoute (
99+ `/orgs/${ org . id } /${ DEFAULT_PROJECT_NAME . toLowerCase ( ) } /${
100+ resp [ 0 ] . notebookID
101+ } `
102+ )
103103 } else {
104104 setRoute ( `/notebook/from/task/${ task . id } ` )
105105 }
106106 } )
107107 . catch ( ( ) => {
108108 setRoute ( `/notebook/from/task/${ task . id } ` )
109109 } )
110- } , [ isFlagEnabled ( 'createWithFlows' ) , task ] )
110+ } , [ isFlagEnabled ( 'createWithFlows' ) , org . id , task ] )
111111
112112 if ( ! task ) {
113113 return null
0 commit comments