Skip to content

Commit

Permalink
Use fallback values
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Jul 6, 2020
1 parent ffa8b12 commit 98c8761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/components/FileDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/components/FileSharingSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default {
const tabOptions = this.currentSidebarTab.options
if (tabOptions) {
return tabOptions.collaboratorsCurrentPanel
return tabOptions.collaboratorsCurrentPanel || PANEL_SHOW
}
return PANEL_SHOW
Expand Down

0 comments on commit 98c8761

Please sign in to comment.