DomDew / strapi-plugin-fuzzy-search

Register a weighted fuzzy search endpoint for Strapi Headless CMS you can add your content types to in no time

Home Page:https://www.npmjs.com/package/strapi-plugin-fuzzy-search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug TypeError: Cannot read properties of undefined

prborisov17 opened this issue · comments

error: Cannot read properties of undefined (reading 'offers')
TypeError: Cannot read properties of undefined (reading 'offers')
at /home/pavel/GIT/cms.oekmarket.ru/node_modules/strapi-plugin-fuzzy-search/dist/server/controllers/search-controller.js:34:91

Plise set default value for filtersQuery in search-controller.js

const { query, pagination, filters: filtersQuery = {}, locale } = ctx.query;

Hey @prborisov17,

thank you for reporting this bug and sorry that this somehow slipped past...

@all-contributors please add @prborisov17 for bug

@all-contributors please add @prborisov17 for bug

@DomDew

@prborisov17 already contributed before to bug

@DomDew

I've put up a pull request to add @you! 🎉

I've put up a pull request to add @prborisov17! 🎉

@DomDew Can you please also fix this for 1.x?