header footer metrics update and credits by site fixes
This commit is contained in:
@@ -165,7 +165,7 @@ export function useModuleStats() {
|
||||
// Total images
|
||||
fetchImages({ ...baseFilters }),
|
||||
// Credits usage from billing summary
|
||||
fetchAPI('/v1/billing/credits/usage/summary/').catch(() => ({
|
||||
fetchAPI(`/v1/billing/credits/usage/summary/?site_id=${activeSite.id}${activeSector?.id ? `§or_id=${activeSector.id}` : ''}`).catch(() => ({
|
||||
data: { by_operation: {} }
|
||||
})),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user