File tree Expand file tree Collapse file tree
apps/webapp/app/routes/_app.orgs.$organizationSlug Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,20 +110,18 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
110110 }
111111
112112 // Derive metric dashboard limit from plan, fallback to 3
113- const metricDashboardsLimitValue = ( plan ?. v3Subscription ?. plan ?. limits as any )
114- ?. metricDashboards ;
113+ const metricDashboardsLimitValue = plan ?. v3Subscription ?. plan ?. limits ?. metricDashboards ;
115114 const dashboardLimit =
116115 typeof metricDashboardsLimitValue === "number"
117116 ? metricDashboardsLimitValue
118- : ( metricDashboardsLimitValue ?. number ?? 3 ) ;
117+ : metricDashboardsLimitValue ?. number ?? 3 ;
119118
120119 // Derive widget-per-dashboard limit from plan, fallback to 16
121- const metricWidgetsLimitValue = ( plan ?. v3Subscription ?. plan ?. limits as any )
122- ?. metricWidgetsPerDashboard ;
120+ const metricWidgetsLimitValue = plan ?. v3Subscription ?. plan ?. limits ?. metricWidgetsPerDashboard ;
123121 const widgetLimitPerDashboard =
124122 typeof metricWidgetsLimitValue === "number"
125123 ? metricWidgetsLimitValue
126- : ( metricWidgetsLimitValue ?. number ?? 16 ) ;
124+ : metricWidgetsLimitValue ?. number ?? 16 ;
127125
128126 // Compute widget counts per dashboard from layout JSON
129127 const customDashboardsWithWidgetCount = customDashboards . map ( ( d ) => {
You can’t perform that action at this time.
0 commit comments