update
This commit is contained in:
@@ -51,7 +51,6 @@ class PolicyServiceAPI {
|
||||
const data = await response.json();
|
||||
return data.results || data;
|
||||
} catch (error) {
|
||||
console.error('Error fetching policies:', error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
@@ -75,7 +74,6 @@ class PolicyServiceAPI {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error(`Error fetching policy ${type}:`, error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
@@ -99,7 +97,6 @@ class PolicyServiceAPI {
|
||||
const data = await response.json();
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error(`Error fetching policy ${id}:`, error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user