📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix: No profiles reported when custom period is selected
Blue Mousefb109f25c109
diff --git a/web/app/api/api.server.ts b/web/app/api/api.server.tsindex f52b01b96..3f4c51c9a 100644--- a/web/app/api/api.server.ts+++ b/web/app/api/api.server.ts@@ -1908,7 +1908,7 @@ export interface ProfilesResponse {export async function getProfilesServer(request: Request,pid: string,- period = '3d',+ period = '7d',filters: AnalyticsFilter[] = [],from = '',to = '',diff --git a/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx b/web/app/pages/Project/tabs/Profiles/ProfilesView.tsxindex 11e2b55f2..8bca43290 100644--- a/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx+++ b/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx@@ -127,7 +127,7 @@ const ProfilesView = ({ tnMapping }: ProfilesViewProps) => {}const dataProfiles = await profilesProxy.fetchProfiles(id, {- period: period === 'custom' && dateRange ? '' : period,+ period: period === 'custom' && dateRange ? 'custom' : period,filters,from: period === 'custom' && dateRange ? from : '',to: period === 'custom' && dateRange ? to : '',diff --git a/web/app/routes/api.analytics.ts b/web/app/routes/api.analytics.tsindex 60a95dd2d..4613ce1f8 100644--- a/web/app/routes/api.analytics.ts+++ b/web/app/routes/api.analytics.ts@@ -509,7 +509,7 @@ export async function action({ request }: ActionFunctionArgs) {const result = await getProfilesServer(request,projectId,- params.period || '3d',+ params.period || '7d',params.filters || [],formatDateForBackend(params.from) || '',formatDateForBackend(params.to) || '',