Correction bug découvert via la page d'exemple :)
This commit is contained in:
parent
a70001daee
commit
c80795cfec
@ -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": {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user