itemsapi / itemsjs

Extremely fast faceted search engine in JavaScript - lightweight, flexible, and simple to use
Apache License 2.0
346 stars 41 forks source link

Uncaught TypeError: t is null #91

Closed noraj closed 2 years ago

noraj commented 3 years ago

The issue I mention in #90 is

image

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

cigolpl commented 3 years ago

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

noraj commented 3 years ago

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

cigolpl commented 3 years ago

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:

noraj commented 3 years ago

I SUPPOSE you should not set null in filters:

set filters fields as undefined

I just get Uncaught TypeError: t is undefined instead.

cigolpl commented 2 years ago

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