Skip to content

Commit

Permalink
Remove notify
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 11, 2023
1 parent 882f0a1 commit 16e542d
Showing 1 changed file with 4 additions and 11 deletions.
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 16e542d

Please sign in to comment.