Correction bug ajout dynamique de champs à afficher

This commit is contained in:
Fabrice PENHOËT 2021-11-03 17:37:34 +01:00
parent 9a598901ca
commit 260c3d8499
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,7 @@ export class FreeDatas2HTML
this._fields2Rend=fields;
else
{
this._fields2Rend=[];
for(let field of fields)
{
if(! this.checkFieldExist(field))
@ -224,6 +225,8 @@ export class FreeDatas2HTML
throw new Error(errors.converterRefreshFail);
else
{
//console.log(this._fields2Rend);
if(this._fields2Rend.length === 0)
this.datasRender.fields=this._fields;
else