Commit d5cf2194 by Yvon Kerdoncuff

fix variable name

parent 8668d16e
......@@ -438,7 +438,7 @@ function fetch_suppliers_products() {
suppliers_products = suppliers_products.filter(p => list_to_process.findIndex(ptp => ptp.product_id[1] === p.name) === -1);
suppliers_products = suppliers_products.filter(p => list_processed.findIndex(pp => pp.product_id[1] === p.name) === -1);
if(editing_product) {
suppliers_products = suppliers_products.filter(p => [editing_product].findIndex(pp => pp.product_id[1] === p.name) === -1);
suppliers_products = suppliers_products.filter(p => [editing_product].findIndex(ep => ep.product_id[1] === p.name) === -1);
}
closeModal();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment