diff --git a/public/js/grocy.js b/public/js/grocy.js index 1ffe0549..96a6b9f3 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -442,7 +442,10 @@ $(".user-setting-control").on("change", function() }, function(xhr) { - Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response) + if (!xhr.statusText.isEmpty()) + { + Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response) + } } ); });