mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Prevent error message spam when navigating away before the page has completely loaded
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user