itemsapi / itemsjs

Extremely fast faceted search engine in JavaScript - lightweight, flexible, and simple to use

Repository from Github https://github.comitemsapi/itemsjsRepository from Github https://github.comitemsapi/itemsjs

Uncaught TypeError: t is null

noraj opened this issue · comments

The issue I mention in #90 is

image

filter.js https://sec-it.fr/javascripts/filter.js

Please provide here an js object which is passed into itemsjs.search(obj) before you get an error

Please provide here an js object which is passed into itemsjs.search(obj) before you get an error

Literally anything.

For a reproducible PoC you can take

It cannot be "anything" because it'd mean it's not working at all

I SUPPOSE you should not set null in filters:

{
  query: '',
  filters: {
    location: null,
    type: null,
    experience: null,
    education: null
}

It's not expected behavior but as long as it is not fixed you can:

  • set filters fields as undefined
  • make PR which internally ignore filters which are null
  • wait until I'll fix it but I cannot provide ETA

I SUPPOSE you should not set null in filters:

set filters fields as undefined

I just get Uncaught TypeError: t is undefined instead.

There is no more complains about that so I am closing it. Please reopen it if that problem still happen