Skip to content

Commit

Permalink
AppSidebar. fix error when no tabs (#359)
Browse files Browse the repository at this point in the history
There was an error when a `AppSidebar` doesn't contain any `AppSidebarTab`s and uses just the content directly.

See #340 (comment)
  • Loading branch information
korelstar authored and skjnldsv committed Apr 20, 2019
1 parent 7bc2f62 commit 9925674
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/AppSidebar/AppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ export default {
return tabs
}, [])
// init active tab
this.updateActive()
// init active tab if exists
if (this.tabs.length > 0) {
this.updateActive()
}
},
methods: {
closeSidebar() {
Expand Down

0 comments on commit 9925674

Please sign in to comment.