feat: Enhance backend API with pagination and validation for ASNs, Domains, and IP Ranges, and update frontend managers to support new API structure for improved data handling and user experience
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 2m14s
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 2m14s
This commit is contained in:
@@ -111,9 +111,10 @@ function IPRangesManager() {
|
||||
const fetchItems = async () => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const response = await axios.get(`${API_URL}/ip-ranges`);
|
||||
setItems(response.data);
|
||||
setOriginalItems(response.data);
|
||||
const response = await axios.get(`${API_URL}/ip-ranges`, { params: { offset: 0, limit: 0 } });
|
||||
const payload = Array.isArray(response.data?.items) ? response.data.items : (Array.isArray(response.data) ? response.data : []);
|
||||
setItems(payload);
|
||||
setOriginalItems(payload);
|
||||
setEtag(response.headers?.etag || '');
|
||||
setLastModified(response.headers?.['last-modified'] || '');
|
||||
const lengthHeader = response.headers?.['content-length-source'];
|
||||
|
||||
Reference in New Issue
Block a user