Добавил возможность решения конкфликтов при создании правил
This commit is contained in:
1 parent
776728cf83
commit
53298d9d07
8 files changed
+972
-26
No files matched your search
@@ -63,7 +63,10 @@ export async function apiFetch(endpoint, method = 'GET', body = null, retryOnUna
|
||||
}
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(data?.message || `Ошибка HTTP: ${response.status}`);
|
||||
const error = new Error(data?.message || `Ошибка HTTP: ${response.status}`);
|
||||
error.status = response.status;
|
||||
error.data = data;
|
||||
throw error;
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
Reference in new issue
Block a user