Skip to content
Snippets Groups Projects
Commit 7a2dcb20 authored by Tony Salomone's avatar Tony Salomone
Browse files

Fix bug where error message not set on conda env check fail.

parent 3d4173b4
Branches
Tags
No related merge requests found
......@@ -248,10 +248,7 @@ function InstallStepper({ setServer }) {
setActiveStep(Steps.indexOf('CHECK_IF_CONDA_ENVIRONMENT_EXISTS') + 1);
} else {
setInstallStatus('notstarted');
setErrorMessage({
message: condaExists?.message,
data: condaExists?.data,
});
setErrorMessage(condaExists?.message);
if (userRequestedInstall) {
stepsFunctions[Steps.indexOf('CHECK_IF_CONDA_ENVIRONMENT_EXISTS')]();
}
......@@ -484,10 +481,7 @@ function InstallStepper({ setServer }) {
return;
} else {
setInstallStatus('error');
setErrorMessage({
message: condaExists?.message,
data: condaExists?.data,
});
setErrorMessage(condaExists?.message);
}
setIntervalXTimes(
'Conda Environment Exists',
......@@ -501,10 +495,7 @@ function InstallStepper({ setServer }) {
return true;
} else {
setInstallStatus('error');
setErrorMessage({
message: condaExists?.message,
data: condaExists?.data,
});
setErrorMessage(condaExists?.message);
}
return false;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment