diff --git a/apps/files/src/components/FileDetails.vue b/apps/files/src/components/FileDetails.vue index 42a786dfd2c..620e764a71e 100644 --- a/apps/files/src/components/FileDetails.vue +++ b/apps/files/src/components/FileDetails.vue @@ -85,8 +85,8 @@ export default { }, currentTab() { - if (this.currentTab) { - return this.currentTab.tab + if (this.currentSidebarTab) { + return this.currentSidebarTab.tab || this.defaultTab } return this.defaultTab diff --git a/apps/files/src/components/FileSharingSidebar.vue b/apps/files/src/components/FileSharingSidebar.vue index 22622e5fc76..e740cbaa646 100644 --- a/apps/files/src/components/FileSharingSidebar.vue +++ b/apps/files/src/components/FileSharingSidebar.vue @@ -146,7 +146,7 @@ export default { const tabOptions = this.currentSidebarTab.options if (tabOptions) { - return tabOptions.collaboratorsCurrentPanel + return tabOptions.collaboratorsCurrentPanel || PANEL_SHOW } return PANEL_SHOW