un petit test pour plus de sécu

This commit is contained in:
Christophe 2020-05-15 10:50:47 +02:00
parent 3db0076019
commit 173e0c61b6
2 changed files with 2 additions and 2 deletions

View file

@ -214,7 +214,7 @@ let monTableau = {
this.header = config.header; this.header = config.header;
this.crayons = config.crayons; this.crayons = config.crayons;
this.table = data; this.table = data;
if (data[0].search) { if (data.length && data[0].search) {
this.champ_search = 'search'; this.champ_search = 'search';
} }
console.log('fin chargement localStorage'); console.log('fin chargement localStorage');

View file

@ -241,7 +241,7 @@ var monTableau = {
this.crayons = config.crayons; this.crayons = config.crayons;
this.table = data; this.table = data;
if (data[0].search) { if (data.length && data[0].search) {
this.champ_search = 'search'; this.champ_search = 'search';
} }