We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c06475 commit 5681821Copy full SHA for 5681821
src/server/plugins/nunjucks/context.js
@@ -42,7 +42,7 @@ export function context(request) {
42
throw Error('Missing baseLayoutPath in plugin.options.nunjucks')
43
}
44
45
- if ('viewContext' in pluginStorage) {
+ if (typeof pluginStorage.viewContext === 'function') {
46
consumerViewContext = pluginStorage.viewContext(request)
47
48
0 commit comments