Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
fix: error in admin products category selection
Browse files Browse the repository at this point in the history
  • Loading branch information
na-teag committed Apr 20, 2024
1 parent a7a744f commit 8ef6348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/admin_products.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function showProduct(product) {
product_amount.value = product.amount;
product_price.value = product.unit_price;
for (let i = 0; i < product_category_id.options.length; i++) {
product_category_id.options[i].selected = product_category_id.options[i].value === product.category_id;
product_category_id.options[i].selected = product_category_id.options[i].value == product.category_id;
}

// Delete button
Expand Down

0 comments on commit 8ef6348

Please sign in to comment.