Merge pull request #6091 from aignatov-bio/ai-sci-9144-fix-marvinjs-on-steps

Fix marvinJS button initialisation [SCI-9144]
This commit is contained in:
aignatov-bio 2023-08-28 15:59:50 +02:00 committed by GitHub
commit 1f382be2ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,6 +120,15 @@
uploadingAttachment,
emptyAttachment
},
watch: {
attachmentsReady() {
if (this.attachmentsReady) {
this.$nextTick(() => {
this.initMarvinJS();
})
}
}
},
computed: {
attachmentsOrdered() {
return this.attachments.sort((a, b) => {