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

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-05-30 22:52:25 +02:00 committed by backportbot[bot]
parent 46bf8b82df
commit d88d34c561
2 changed files with 1 additions and 8 deletions

View file

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

View file

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