Merge pull request #7143 from G-Chubinidze/gc_SCI_10254

Loading file to results - wrong file and preview [SCI-10254]
This commit is contained in:
Martin Artnik 2024-02-27 11:41:44 +01:00 committed by GitHub
commit 02e8fc4e45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,6 +90,9 @@ export default {
},
computed: {
attachmentsOrdered() {
if (this.attachments.some((attachment) => attachment.attributes.uploading)) {
return this.attachments;
}
return this.attachments.sort((a, b) => {
if (a.attributes.asset_order == b.attributes.asset_order) {
switch (this.parent.attributes.assets_order) {