summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-05-30 22:52:25 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2024-05-31 11:39:39 +0200
commit7c4dcf51c47b6e7cb98488668207bb072255bbc2 (patch)
treebb436047bef877f8d9de0346aed92389480a5f89 /apps
parent25f99a29e0532852f4e3304e4b36c7c08cff990a (diff)
downloadnextcloud-server-7c4dcf51c47b6e7cb98488668207bb072255bbc2.tar.gz
nextcloud-server-7c4dcf51c47b6e7cb98488668207bb072255bbc2.zip
fix(files): Ensure entry with `fileid` is marked as active
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/components/FileEntry.vue7
-rw-r--r--apps/files/src/components/FileEntryMixin.ts2
2 files changed, 1 insertions, 8 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index 415024f8fb8..103b6046f26 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/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: {
diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts
index c141acff7a7..cb2a6ee2d19 100644
--- a/apps/files/src/components/FileEntryMixin.ts
+++ b/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() {