Skip to content

Commit

Permalink
fix: clear error message
Browse files Browse the repository at this point in the history
fixes #858
  • Loading branch information
NishaSharma14 committed Oct 12, 2023
1 parent 99fb013 commit 340b69b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/Pages/Study/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ export default {
this.emitter.emit("openStudyDetails", {});
},
loadSmiles() {
this.errorMessage = "";
if (this.smiles && this.smiles != "") {
try {
let mol = OCL.Molecule.fromSmiles(this.smiles);
Expand Down
1 change: 1 addition & 0 deletions resources/js/Shared/Submission.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2213,6 +2213,7 @@ export default {
},
loadSmiles() {
this.errorMessage = "";
if (this.smiles && this.smiles != "") {
try {
let mol = OCL.Molecule.fromSmiles(this.smiles);
Expand Down

0 comments on commit 340b69b

Please sign in to comment.