Skip to content

Commit ca1b6a4

Browse files
authored
🐛 Fix error when no transitions are set
Fix getTransition() error when transitions property is undefined
2 parents 1d9fa2d + 5a3238e commit ca1b6a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ export default class Helpers {
138138
* @static
139139
*/
140140
getTransition(slug) {
141+
if (!this.transitions) {
142+
return null;
143+
}
144+
141145
if (!(slug in this.transitions)) {
142146
if ('default' in this.transitions) {
143147
return this.transitions['default'];

0 commit comments

Comments
 (0)