From d88d34c5613b7c3e632d2845b3fba5d2f2d7f408 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 30 May 2024 22:52:25 +0200 Subject: [PATCH] fix(files): Ensure entry with `fileid` is marked as active Signed-off-by: Ferdinand Thiessen --- apps/files/src/components/FileEntry.vue | 7 ------- apps/files/src/components/FileEntryMixin.ts | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index 973e1de667f..5d9fcf0e253 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -236,13 +236,6 @@ export default defineComponent({ } return '' }, - - /** - * This entry is the current active node - */ - isActive() { - return this.fileid === this.currentFileId?.toString?.() - }, }, methods: { diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index d3a9e80c9b7..e2ebb5df459 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -118,7 +118,7 @@ export default defineComponent({ }, isActive() { - return this.fileid?.toString?.() === this.currentFileId?.toString?.() + return String(this.fileid) === String(this.currentFileId) }, canDrag() {