Skip to content

Commit 8693eb0

Browse files
committed
Fix: fallback to default period for widgets
Previously it was using 7d by default… even though the Metrics default is 1d 🤦‍♂️
1 parent 06a98bd commit 8693eb0

File tree

1 file changed

+1
-1
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.metrics.$dashboardKey

1 file changed

+1
-1
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.metrics.$dashboardKey/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export function MetricDashboard({
226226
title={widget.title}
227227
query={widget.query}
228228
scope={scope}
229-
period={period ?? null}
229+
period={period ?? defaultPeriod}
230230
from={from ?? null}
231231
to={to ?? null}
232232
taskIdentifiers={tasks.length > 0 ? tasks : undefined}

0 commit comments

Comments
 (0)