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
Next Next commit
fix(files): Ensure entry with fileid is marked as active
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux authored and backportbot[bot] committed May 31, 2024
commit d88d34c5613b7c3e632d2845b3fba5d2f2d7f408
7 changes: 0 additions & 7 deletions apps/files/src/components/FileEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,6 @@ export default defineComponent({
}
return ''
},

/**
* This entry is the current active node
*/
isActive() {
return this.fileid === this.currentFileId?.toString?.()
},
},

methods: {
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default defineComponent({
},

isActive() {
return this.fileid?.toString?.() === this.currentFileId?.toString?.()
return String(this.fileid) === String(this.currentFileId)
},

canDrag() {
Expand Down