Uncaught TypeError: t is null
noraj opened this issue · comments
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
- the HTML form here https://sec-it.fr/fr/career/
- the script https://sec-it.fr/javascripts/filter.js
- the data https://sec-it.fr/javascripts/jobs.json
- itemjs 1.0.49 ✔️
- itemjs 2.1.10 (or any 2.x.x version) ❌
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