Skip to content

Commit

Permalink
Merge pull request #861 from archesproject/860-cbyrd-update-instrumen…
Browse files Browse the repository at this point in the history
…t-info-error-handling

Adds better error handling to instrument-info-step
  • Loading branch information
chiatt authored Dec 28, 2021
2 parents e7b222c + 8970847 commit 41018eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ define([
params.form.save = function() {
params.form.complete(false);
if (!self.instrumentValue()){
params.form.error(true);
params.form.error(new Error("Selecting an instrument is required."));
params.pageVm.alert(new params.form.AlertViewModel('ep-alert-red', "Instrument Required", "Selecting an instrument is required."));
return;
}
Expand Down

0 comments on commit 41018eb

Please sign in to comment.