From 1f863317413decceb56539f40383e3281b805ae3 Mon Sep 17 00:00:00 2001 From: Felix Schmenger Date: Mon, 17 Jan 2022 14:00:25 +0100 Subject: [PATCH] Fix for ViewAnimation utility which did not work in a test environment, when no appConfig object is defined. --- src/util/ViewAnimation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/ViewAnimation.js b/src/util/ViewAnimation.js index 2162c643..8e866a0a 100644 --- a/src/util/ViewAnimation.js +++ b/src/util/ViewAnimation.js @@ -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']; }, @@ -37,7 +37,7 @@ const ViewAnimationUtil = { */ getOptions (options) { const appConfig = Vue.prototype.$appConfig; - return options || appConfig.viewAnimation?.options || {}; + return options || appConfig?.viewAnimation?.options || {}; }, /**