Добавил возможность решения конкфликтов при создании правил

This commit is contained in:
dipatrik10 committed 2026-06-03 13:55:31 +03:00
1 parent 776728cf83
commit 53298d9d07
8 files changed
+972 -26

No files matched your search

+4 -1
View File
@@ -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;