Handle when transition fn not returning anything

fix for #1406
This commit is contained in:
Pooya Parsa 2017-08-18 00:30:49 +04:30
parent 77ad0c8fc4
commit b4847b7656
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ function componentOption(component, key, ...args) {
function mapTransitions(Components, to, from) {
const componentTransitions = component => {
const transition = componentOption(component, 'transition', to, from)
const transition = componentOption(component, 'transition', to, from) || {}
return (typeof transition === 'string' ? { name: transition } : transition)
}