Typecheck fixes

This commit is contained in:
Konstantin Wohlwend 2025-10-30 00:10:33 -07:00
parent 408d00e21e
commit abe52aec14
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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