Loading file to results - wrong file and preview [SCI-10254]

This commit is contained in:
Giga Chubinidze 2024-02-27 12:48:34 +04:00
parent 45353987ad
commit ca831cb103

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) {