From c9e0ea525be6d4ffb4486dac98a02fe9de68ac31 Mon Sep 17 00:00:00 2001 From: Christoph Seitz Date: Sun, 19 Apr 2020 22:41:40 +0200 Subject: Set fileInfo correctly for LegacyTabs Watch for changes of the fileInfo prop and propagate it to, the underlying component. Fixes #20106. Signed-off-by: Christoph Seitz --- apps/files/src/components/LegacyTab.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files/src') 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) } }, }, -- cgit v1.2.3