Moved reverse of the getPendingCreations to the AdminResolver instead to do it in the CreationConfirm page.

This commit is contained in:
elweyn 2021-12-13 12:33:36 +01:00
parent 64109b2903
commit f787a7470f
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ export default {
})
.then((result) => {
this.$store.commit('resetOpenCreations')
this.confirmResult = result.data.getPendingCreations.reverse()
this.confirmResult = result.data.getPendingCreations
this.$store.commit('setOpenCreations', result.data.getPendingCreations.length)
})
.catch((error) => {

View File

@ -132,7 +132,7 @@ export class AdminResolver {
return newPendingCreation
}),
)
return pendingCreationsPromise
return pendingCreationsPromise.reverse()
}
@Mutation(() => Boolean)