removed legacy 404 check and preserved collections sort order within each type group

This commit is contained in:
Gani Georgiev
2023-07-20 13:04:44 +03:00
parent 832d7f360c
commit 06016722d1
32 changed files with 53 additions and 48 deletions

View File

@@ -38,16 +38,11 @@ PocketBase.prototype.error = function(err, notify = true, defaultMsg = "") {
const statusCode = (err?.status << 0) || 400;
const responseData = err?.data || {};
const msg = responseData.message || err.message || defaultMsg;
// add toast error notification
if (
notify && // notifications are enabled
statusCode !== 404 // is not 404
) {
let msg = responseData.message || err.message || defaultMsg;
if (msg) {
addErrorToast(msg);
}
if (notify && msg) {
addErrorToast(msg);
}
// populate form field errors