Skip to content

Commit 8313bbb

Browse files
go2shbackportbot[bot]
authored andcommitted
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 <christoph.seitz@posteo.de>
1 parent 2cf8fab commit 8313bbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/files/src/components/LegacyTab.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export default {
6868
},
6969
},
7070
watch: {
71-
activeTab(activeTab) {
72-
if (activeTab === this.id && this.fileInfo) {
73-
this.setFileInfo(this.fileInfo)
71+
fileInfo(fileInfo) {
72+
if (fileInfo) {
73+
this.setFileInfo(fileInfo)
7474
}
7575
},
7676
},

0 commit comments

Comments
 (0)