Cannot read property 'filterState' of undefined

TypeError: Cannot read property 'filterState' of undefined at eval (eval at wrap (/var/app/current/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:302:111) at eval (eval at wrap (/var/app/current/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:338:4) at eval (eval at wrap (/var/app/current/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:556:4) at template (eval at wrap (/var/app/current/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:571:1806) at wrappedTemplate (/var/app/current/node_modules/elastic-apm-node/lib/instrumentation/template-shared.js:15:26) at Object.exports.renderFile (/var/app/current/node_modules/pug/lib/index.js:427:38) at Object.exports.renderFile (/var/app/current/node_modules/pug/lib/index.js:417:21) at View.exports.__express [as engine] (/var/app/current/node_modules/pug/lib/index.js:464:11) at View.render (/var/app/current/node_modules/express/lib/view.js:135:8) at tryRender (/var/app/current/node_modules/express/lib/application.js:640:10) at Function.render (/var/app/current/node_modules/express/lib/application.js:592:3) at ServerResponse.render (/var/app/current/node_modules/express/lib/response.js:1012:7) at app.get (/var/app/current/index.js:78:7) at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:95:5) at next (/var/app/current/node_modules/express/lib/router/route.js:137:13) at contentful.getPage (/var/app/current/controllers/page/index.js:10:5) at async.each (/var/app/current/controllers/page/contentful.js:62:7) at /var/app/current/node_modules/async/dist/async.js:473:16 at iteratorCallback (/var/app/current/node_modules/async/dist/async.js:1064:13) at /var/app/current/node_modules/async/dist/async.js:969:16 at /var/app/current/node_modules/async/dist/async.js:3888:9 at /var/app/current/node_modules/async/dist/async.js:473:16 at iterateeCallback (/var/app/current/node_modules/async/dist/async.js:992:24) at /var/app/current/node_modules/async/dist/async.js:969:16 at /var/app/current/node_modules/async/dist/async.js:3885:13 at async.mapValues (/var/app/current/controllers/page/contentful.js:44:7) at /var/app/current/node_modules/async/dist/async.js:473:16 at /var/app/current/node_modules/async/dist/async.js:3688:9 at /var/app/current/node_modules/async/dist/async.js:473:16 at iterateeCallback (/var/app/current/node_modules/async/dist/async.js:992:24) at /var/app/current/node_modules/async/dist/async.js:969:16 at /var/app/current/node_modules/async/dist/async.js:3685:13 at image.generate (/var/app/current/controllers/page/contentful.js:36:13) at /var/app/current/node_modules/async/dist/async.js:3888:9 at /var/app/current/node_modules/async/dist/async.js:473:16 at replenish (/var/app/current/node_modules/async/dist/async.js:1006:25) at /var/app/current/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/var/app/current/node_modules/async/dist/async.js:1041:24) at /var/app/current/node_modules/async/dist/async.js:1046:16 at eachOf (/var/app/current/node_modules/async/dist/async.js:1117:5) at _parallel (/var/app/current/node_modules/async/dist/async.js:3879:5) at Object.parallelLimit [as parallel] (/var/app/current/node_modules/async/dist/async.js:3962:5) at /var/app/current/controllers/image/index.js:39:11 at elasticAPMCallbackWrapper (/var/app/current/node_modules/elastic-apm-node/lib/instrumentation/index.js:288:27) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickDomainCallback (internal/process/next_tick.js:128:9) at process.fallback (/var/app/current/node_modules/elastic-apm-node/lib/instrumentation/patch-async.js:431:17)