Skip to content

Commit

Permalink
Remove session.notify after using the Add track workflow (#4123)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 11, 2023
1 parent e11b16b commit 08d77ac
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ const DefaultAddTrackWorkflow = observer(function ({
cancelCallback: () => jobsManager.abortJob(),
}
jobsManager.queueJob(newEntry)
} else {
session.notify(
'Open a new view, or use the track selector in an existing view, to view this track',
'info',
)
}
model.clearData()
if (isSessionModelWithWidgets(session)) {
Expand All @@ -148,11 +143,6 @@ const DefaultAddTrackWorkflow = observer(function ({
}
}

function handleBack() {
setTrackErrorMessage(undefined)
setActiveStep(activeStep - 1)
}

function isNextDisabled() {
switch (activeStep) {
case 0:
Expand All @@ -179,7 +169,10 @@ const DefaultAddTrackWorkflow = observer(function ({
<div className={classes.actionsContainer}>
<Button
disabled={activeStep === 0}
onClick={handleBack}
onClick={() => {
setTrackErrorMessage(undefined)
setActiveStep(activeStep - 1)
}}
className={classes.button}
>
Back
Expand Down

0 comments on commit 08d77ac

Please sign in to comment.