mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-12 09:20:45 +08:00
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:
commit
02e8fc4e45
1 changed files with 3 additions and 0 deletions
|
|
@ -90,6 +90,9 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
attachmentsOrdered() {
|
attachmentsOrdered() {
|
||||||
|
if (this.attachments.some((attachment) => attachment.attributes.uploading)) {
|
||||||
|
return this.attachments;
|
||||||
|
}
|
||||||
return this.attachments.sort((a, b) => {
|
return this.attachments.sort((a, b) => {
|
||||||
if (a.attributes.asset_order == b.attributes.asset_order) {
|
if (a.attributes.asset_order == b.attributes.asset_order) {
|
||||||
switch (this.parent.attributes.assets_order) {
|
switch (this.parent.attributes.assets_order) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue