Browse Source

fix(files): Ensure entry with `fileid` is marked as active

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/45594/head
Ferdinand Thiessen 1 year ago
committed by Andy Scherzinger
parent
commit
7c4dcf51c4
  1. 7
      apps/files/src/components/FileEntry.vue
  2. 2
      apps/files/src/components/FileEntryMixin.ts

7
apps/files/src/components/FileEntry.vue

@ -219,13 +219,6 @@ export default defineComponent({
}
return ''
},
/**
* This entry is the current active node
*/
isActive() {
return this.fileid === this.currentFileId?.toString?.()
},
},
methods: {

2
apps/files/src/components/FileEntryMixin.ts

@ -101,7 +101,7 @@ export default defineComponent({
},
isActive() {
return this.fileid?.toString?.() === this.currentFileId?.toString?.()
return String(this.fileid) === String(this.currentFileId)
},
canDrag() {

Loading…
Cancel
Save