mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 11:56:16 +02:00
Fix product creation
This commit is contained in:
parent
aaeb81c087
commit
66ed6bbafc
|
|
@ -62,7 +62,7 @@ $('.save-product-button').on('click', function(e) {
|
|||
jsonData.parent_product_id = parentProductId;
|
||||
Grocy.FrontendHelpers.BeginUiBusy("product-form");
|
||||
|
||||
if (jsonData.parent_product_id.toString().isEmpty()) {
|
||||
if ((jsonData.parent_product_id || '').toString().isEmpty()) {
|
||||
jsonData.parent_product_id = null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user