Skip to content

Commit 3b50548

Browse files
authored
fix: remove success message (#3547)
1 parent 695c5ae commit 3b50548

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/flows/context/flow.query.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ import {useEvent, sendEvent} from 'src/users/hooks/useEvent'
1212
import {getOrg} from 'src/organizations/selectors'
1313

1414
// Constants
15-
import {
16-
notebookRunSuccess,
17-
notebookRunFail,
18-
} from 'src/shared/copy/notifications'
15+
import {notebookRunFail} from 'src/shared/copy/notifications'
1916

2017
// Types
2118
import {RemoteDataState} from 'src/types'
@@ -320,7 +317,6 @@ export const FlowQueryProvider: FC = ({children}) => {
320317
)
321318
.then(() => {
322319
event('run_notebook_success')
323-
dispatch(notify(notebookRunSuccess(PROJECT_NAME)))
324320
})
325321
.catch(e => {
326322
event('run_notebook_fail')
@@ -377,7 +373,6 @@ export const FlowQueryProvider: FC = ({children}) => {
377373
)
378374
.then(() => {
379375
event('run_notebook_success')
380-
dispatch(notify(notebookRunSuccess(PROJECT_NAME)))
381376
})
382377
.catch(e => {
383378
event('run_notebook_fail')

src/shared/copy/notifications.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,11 +1215,6 @@ export const editNotificationRuleCodeWarning = (): Notification => ({
12151215

12161216
// Notebooks
12171217

1218-
export const notebookRunSuccess = (projectName: string): Notification => ({
1219-
...defaultSuccessNotification,
1220-
message: `${projectName} run successful!`,
1221-
})
1222-
12231218
export const notebookRunFail = (projectName: string): Notification => ({
12241219
...defaultErrorNotification,
12251220
message: `${projectName} run failed`,

0 commit comments

Comments
 (0)