Skip to content

Commit

Permalink
CC-26231: fix dataTable row comparison by id (#10656)
Browse files Browse the repository at this point in the history
CC-26231 Fix dataTable row comparison by ID.
  • Loading branch information
Yuriy Gerton authored Dec 6, 2023
1 parent 6c1d707 commit c71b4a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/Zed/js/modules/add-product-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ var ProductListContentItem = function (
this.getRowData = function (productTable, productId) {
var tableData = productTable.dataTable().api().data().toArray();
var rowData = tableData.find(function (item) {
if (item[0] === Number(productId)) {
return item;
}
return Number(item[0]) === Number(productId);
});

rowData.splice(-1, 1);
Expand Down

0 comments on commit c71b4a8

Please sign in to comment.