Fix product creation

This commit is contained in:
Alexander Sagen 2022-03-13 19:21:12 +01:00
parent aaeb81c087
commit 66ed6bbafc
No known key found for this signature in database
GPG Key ID: C1B6BD677756F470

View File

@ -62,7 +62,7 @@ $('.save-product-button').on('click', function(e) {
jsonData.parent_product_id = parentProductId; jsonData.parent_product_id = parentProductId;
Grocy.FrontendHelpers.BeginUiBusy("product-form"); Grocy.FrontendHelpers.BeginUiBusy("product-form");
if (jsonData.parent_product_id.toString().isEmpty()) { if ((jsonData.parent_product_id || '').toString().isEmpty()) {
jsonData.parent_product_id = null; jsonData.parent_product_id = null;
} }