From 936bf8d425460ff34ee15113e3073fa72564dac4 Mon Sep 17 00:00:00 2001 From: Issam Hakimi aka Killix Date: Mon, 19 Jun 2017 10:26:06 +0100 Subject: [PATCH] from_transitions should exist --- lib/app/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/client.js b/lib/app/client.js index 4c2d9ff978..42fe801818 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -24,7 +24,7 @@ function mapTransitions(Components, to, from) { const transitions = Object.assign({}, to ? resolveRoute(to) : resolveTransitions(Component)) const from_transitions = from ? resolveRoute(from) : {} // Combine transitions & prefer leave* transitions of from route - Object.keys(from_transitions).forEach(key=> { + Object.keys(from_transitions || {}).forEach(key=> { if (from_transitions[key] && key.toLowerCase().indexOf('leave') !== -1) { transitions[key] = from_transitions[key] }