From ca831cb1030f4164cf03e7f28b1bde9a46a131ed Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Tue, 27 Feb 2024 12:48:34 +0400 Subject: [PATCH] Loading file to results - wrong file and preview [SCI-10254] --- app/javascript/vue/shared/content/attachments.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/vue/shared/content/attachments.vue b/app/javascript/vue/shared/content/attachments.vue index 77e39e291..e9ad4b02b 100644 --- a/app/javascript/vue/shared/content/attachments.vue +++ b/app/javascript/vue/shared/content/attachments.vue @@ -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) {