mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fixed potential JS error when copying product with empty but not null description
This commit is contained in:
parent
cd41c27ee1
commit
1ef64025c5
@ -471,7 +471,7 @@ if (Grocy.EditMode == "create" && GetUriParam("copy-of") != undefined)
|
||||
{
|
||||
Grocy.Components.ProductPicker.SetId(sourceProduct.parent_product_id);
|
||||
}
|
||||
if (sourceProduct.description != null)
|
||||
if (sourceProduct.description != null && !sourceProduct.description.isEmpty())
|
||||
{
|
||||
$("#description").summernote("pasteHTML", sourceProduct.description);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user