mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 06:04:46 +08:00
Loading file to results - wrong file and preview [SCI-10254]
This commit is contained in:
parent
45353987ad
commit
ca831cb103
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue