diff --git a/public/viewjs/recipeposform.js b/public/viewjs/recipeposform.js index 55e559ab..1931a1a9 100644 --- a/public/viewjs/recipeposform.js +++ b/public/viewjs/recipeposform.js @@ -6,6 +6,7 @@ $('#save-recipe-pos-button').on('click', function (e) var jsonData = $('#recipe-pos-form').serializeJSON({ checkboxUncheckedValue: "0" }); jsonData.recipe_id = Grocy.EditObjectParentId; + jsonData.amount = jsonData.amount.replace(/\s/g, ''); delete jsonData.display_amount; Grocy.FrontendHelpers.BeginUiBusy("recipe-pos-form");