Correction bug découvert via la page d'exemple :)
This commit is contained in:
parent
a70001daee
commit
c80795cfec
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "freedatas2html",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"description": "Visualization of data from various sources (CSV, API, HTML...) with filters, classification, pagination, etc.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -208,16 +208,17 @@ export class freeDatas2HTML
|
||||
}
|
||||
else
|
||||
{
|
||||
visible=false;
|
||||
let checkedValues=datas[row][filters[i].field].split(filters[i].separator as string);
|
||||
let checkedValues=datas[row][filters[i].field].split(filters[i].separator as string), finded=false;
|
||||
for(let j in checkedValues)
|
||||
{
|
||||
if(checkedValues[j].trim() === filters[i].value)
|
||||
{
|
||||
visible=true;
|
||||
finded=true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!finded)
|
||||
visible=false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user