aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src')
-rw-r--r--apps/files/src/components/LegacyTab.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/src/components/LegacyTab.vue b/apps/files/src/components/LegacyTab.vue
index eaa72a99bbb..25c8f12666b 100644
--- a/apps/files/src/components/LegacyTab.vue
+++ b/apps/files/src/components/LegacyTab.vue
@@ -68,9 +68,9 @@ export default {
},
},
watch: {
- activeTab(activeTab) {
- if (activeTab === this.id && this.fileInfo) {
- this.setFileInfo(this.fileInfo)
+ fileInfo(fileInfo) {
+ if (fileInfo) {
+ this.setFileInfo(fileInfo)
}
},
},