Skip to content

Commit

Permalink
Fix for ViewAnimation utility which did not work in a test environmen…
Browse files Browse the repository at this point in the history
…t, when no appConfig object is defined.
  • Loading branch information
fschmenger committed Jan 17, 2022
1 parent e817d66 commit 1f86331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/ViewAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ViewAnimationUtil = {
};

const appConfig = Vue.prototype.$appConfig;
const animType = appConfig.viewAnimation?.type;
const animType = appConfig?.viewAnimation?.type;
return animations[animType] || animations['default'];
},

Expand All @@ -37,7 +37,7 @@ const ViewAnimationUtil = {
*/
getOptions (options) {
const appConfig = Vue.prototype.$appConfig;
return options || appConfig.viewAnimation?.options || {};
return options || appConfig?.viewAnimation?.options || {};
},

/**
Expand Down

0 comments on commit 1f86331

Please sign in to comment.