From 340b69bdf59e6fd4399a7ec6a5808ccc1f814b6e Mon Sep 17 00:00:00 2001 From: NishaSharma14 Date: Thu, 12 Oct 2023 13:42:37 +0200 Subject: [PATCH] fix: clear error message fixes #858 --- resources/js/Pages/Study/About.vue | 1 + resources/js/Shared/Submission.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/resources/js/Pages/Study/About.vue b/resources/js/Pages/Study/About.vue index a641bad8..33fa08d1 100644 --- a/resources/js/Pages/Study/About.vue +++ b/resources/js/Pages/Study/About.vue @@ -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); diff --git a/resources/js/Shared/Submission.vue b/resources/js/Shared/Submission.vue index c2e16e4e..348e60b0 100644 --- a/resources/js/Shared/Submission.vue +++ b/resources/js/Shared/Submission.vue @@ -2213,6 +2213,7 @@ export default { }, loadSmiles() { + this.errorMessage = ""; if (this.smiles && this.smiles != "") { try { let mol = OCL.Molecule.fromSmiles(this.smiles);