Browse Source

[Backend] Documents : correctif Vuejs getProductById()

feature/souke
Guillaume 1 year ago
parent
commit
96fb9d552d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/web/js/vuejs/document-form.js

+ 1
- 1
backend/web/js/vuejs/document-form.js View File

getProductById: function(idProduct) { getProductById: function(idProduct) {
var app = this; var app = this;


for(var i = 0; i <= Object.keys(this.productsArray).length ; i++) {
for(var i = 0; i <= Object.keys(this.productsArray).length + 1 ; i++) {
if(app.productsArray[i] && app.productsArray[i].id == idProduct) { if(app.productsArray[i] && app.productsArray[i].id == idProduct) {
return app.productsArray[i]; return app.productsArray[i];
} }

Loading…
Cancel
Save