Skip to content

Commit

Permalink
chore(#639): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Jun 27, 2023
1 parent 33c3966 commit 6f54a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/views/src/components/DruxtView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export default {
if (viewId) {
// Check if we need to bypass cache.
let bypassCache = false
if (typeof settings.query.bypassCache === 'boolean') {
if (typeof (settings.query || {}).bypassCache === 'boolean') {
bypassCache = settings.query.bypassCache
}
Expand Down Expand Up @@ -497,7 +497,7 @@ export default {
const settings = merge($druxt.settings.views || {}, wrapperSettings, { arrayMerge: (dest, src) => src })
// Evaluate the bypass cache function.
if (typeof settings.query.bypassCache === 'function') {
if (typeof (settings.query || {}).bypassCache === 'function') {
settings.query.bypassCache = !!settings.query.bypassCache(context)
}
Expand Down

0 comments on commit 6f54a76

Please sign in to comment.