Skip to content

Commit

Permalink
LIMS-210: Prevent double clicking to create multiple samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Williams committed Sep 4, 2023
1 parent b7477a0 commit 7b2f50f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,10 @@ export default {
try {
this.$store.commit('loading', true)
const result = await this.$refs.containerForm.validate()

if (result) {
await this.saveSample(location)
const samplesRef = this.$refs.samples
samplesRef.$refs[`sample-row-${location}`][0].closeSampleEditing()
await this.saveSample(location)
this.$refs.containerForm.reset()
}
else {
Expand Down

0 comments on commit 7b2f50f

Please sign in to comment.