From abe52aec14dc3e91387011c78aa9ea8552822250 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Thu, 30 Oct 2025 00:10:33 -0700 Subject: [PATCH] Typecheck fixes --- .../projects/[projectId]/(overview)/metrics-page.tsx | 4 ++-- .../(protected)/projects/[projectId]/apps/page-client.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(overview)/metrics-page.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(overview)/metrics-page.tsx index ef9f4f6c4..3db644ad0 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(overview)/metrics-page.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(overview)/metrics-page.tsx @@ -50,9 +50,9 @@ export default function MetricsPage(props: { toSetup: () => void }) { const [includeAnonymous, setIncludeAnonymous] = useState(false); const data = (adminApp as any)[stackAppInternalsSymbol].useMetrics(includeAnonymous); - + // const installedApps = Object.entries(config.apps.installed) - .filter(([_, appConfig]) => appConfig.enabled) + .filter(([_, appConfig]) => appConfig?.enabled) .map(([appId]) => appId as AppId); const suggestedApps = typedEntries(ALL_APPS) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/apps/page-client.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/apps/page-client.tsx index 296a999b8..ba68ba569 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/apps/page-client.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/apps/page-client.tsx @@ -12,7 +12,7 @@ export default function PageClient() { // Get installed apps const installedApps = Object.entries(config.apps.installed) - .filter(([_, appConfig]) => appConfig.enabled) + .filter(([_, appConfig]) => appConfig?.enabled) .map(([appId]) => appId as AppId); // Group apps by tag