2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-15 01:11:27 +00:00

Fix action buttons in "part" table on category page

This commit is contained in:
Oliver Walters
2022-04-07 19:09:43 +10:00
parent e1fbd961e5
commit e225d3b765
3 changed files with 10 additions and 18 deletions

View File

@ -481,7 +481,7 @@ function orderParts(parts_list, options={}) {
var thumb = thumbnailImage(part.thumbnail || part.image);
// The "quantity" field should have been provided for each part
var quantity = part.quantity || 0;
var quantity = part.quantity || 1;
if (quantity < 0) {
quantity = 0;