Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(files): remove unecessary sorting code snippet
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Jul 15, 2025
commit aef96319f0eac376d20eee3d6fa986f4705cc978
12 changes: 1 addition & 11 deletions apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,7 @@ export default defineComponent({
return false
}
})
.sort((a, b) => {
// Sort destructive actions to the end
if (a.destructive && !b.destructive) {
return 1
} else if (!a.destructive && b.destructive) {
return -1
}

// Sort by order, if not defined, use 0
return (a.order || 0) - (b.order || 0)
})
.sort((a, b) => (a.order || 0) - (b.order || 0))
},

defaultFileAction() {
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

Loading