Skip to content

Commit

Permalink
Set fileInfo correctly for LegacyTabs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
go2sh authored and backportbot[bot] committed Apr 21, 2020
1 parent 2cf8fab commit 8313bbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/files/src/components/LegacyTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
},
},
Expand Down

0 comments on commit 8313bbb

Please sign in to comment.