Skip to content

Commit

Permalink
Merge pull request #79 from berdon/berdon/#77-act-tab-null
Browse files Browse the repository at this point in the history
#77 - Handling an empty actTabs gracefully
  • Loading branch information
mbnuqw authored Sep 4, 2019
2 parents 89cd700 + 542fac3 commit 5e7fd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function findSuccessorTab(state, tab, exclude) {
}

// Previously active tab
if (state.activateAfterClosing === 'prev_act') {
if (state.actTabs && state.activateAfterClosing === 'prev_act') {
let targetId
for (let i = state.actTabs.length; i--; ) {
targetId = state.actTabs[i]
Expand Down

0 comments on commit 5e7fd0f

Please sign in to comment.