mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Hide barcode in select dropdown but search in it
This commit is contained in:
@@ -42,7 +42,7 @@ $(function()
|
||||
Grocy.FetchJson('/api/get-object/products/' + Grocy.EditObjectId,
|
||||
function (product)
|
||||
{
|
||||
if (product.barcode.length > 0)
|
||||
if (product.barcode !== null && product.barcode.length > 0)
|
||||
{
|
||||
product.barcode.split(',').forEach(function(item)
|
||||
{
|
||||
|
Reference in New Issue
Block a user