Correction bug découvert via la page d'exemple :)

This commit is contained in:
Fabrice PENHOËT 2021-09-01 16:30:18 +02:00
parent a70001daee
commit c80795cfec
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "freedatas2html", "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.", "description": "Visualization of data from various sources (CSV, API, HTML...) with filters, classification, pagination, etc.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -208,16 +208,17 @@ export class freeDatas2HTML
} }
else else
{ {
visible=false; let checkedValues=datas[row][filters[i].field].split(filters[i].separator as string), finded=false;
let checkedValues=datas[row][filters[i].field].split(filters[i].separator as string);
for(let j in checkedValues) for(let j in checkedValues)
{ {
if(checkedValues[j].trim() === filters[i].value) if(checkedValues[j].trim() === filters[i].value)
{ {
visible=true; finded=true;
break; break;
} }
} }
if(!finded)
visible=false;
} }
} }
} }