Skip to content

Commit

Permalink
Fix inverted sorting in frontend for shared forms
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
  • Loading branch information
Chartman123 committed Oct 25, 2023
1 parent cf52d3c commit 9ae86f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export default {
} else {
const sharedFormIndex = this.sharedForms.findIndex(form => form.id === id)
this.sharedForms[sharedFormIndex].lastUpdated = moment().unix()
this.sharedForms.sort((a, b) => a.lastUpdated - b.lastUpdated)
this.sharedForms.sort((b, a) => a.lastUpdated - b.lastUpdated)
}
},
},
Expand Down

0 comments on commit 9ae86f3

Please sign in to comment.