fix: ajoute un element au tableau, il faut bien l'ajouter, close #11
This commit is contained in:
parent
707a23deab
commit
f332c5f888
1 changed files with 5 additions and 1 deletions
|
@ -680,7 +680,11 @@ function gererData(data, id = null) {
|
|||
if (data.length > 0) {
|
||||
data.forEach((ligne, index) => {
|
||||
let i = trouver_index(table.value, ligne.html.id);
|
||||
if (i >= 0) {
|
||||
table.value[i] = data[index];
|
||||
} else {
|
||||
table.value.unshift(data[index]);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue