mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Fix dev
This commit is contained in:
parent
03964cc54d
commit
e286b36114
@ -58,7 +58,7 @@ export default function MetricsPage(props: { toSetup: () => void }) {
|
||||
const suggestedApps = typedEntries(ALL_APPS)
|
||||
.filter(([_, app]) => app.stage === "stable")
|
||||
.map(([appId]) => appId)
|
||||
.filter((appId) => !config.apps.installed[appId].enabled);
|
||||
.filter((appId) => !config.apps.installed[appId]?.enabled);
|
||||
|
||||
return (
|
||||
<PageLayout>
|
||||
|
||||
@ -107,7 +107,7 @@ export function AppSquare({ appId }: {
|
||||
const project = adminApp.useProject();
|
||||
const config = project.useConfig();
|
||||
|
||||
const isEnabled = config.apps.installed[appId].enabled;
|
||||
const isEnabled = config.apps.installed[appId]?.enabled ?? false;
|
||||
const appPath = getAppPath(project.id, appFrontend);
|
||||
const appDetailsPath = `/projects/${project.id}/apps/${appId}`;
|
||||
|
||||
|
||||
@ -465,7 +465,7 @@ const organizationConfigDefaults = {
|
||||
},
|
||||
|
||||
apps: {
|
||||
installed: typedFromEntries(appIds.map(appId => [appId, { enabled: false }])),
|
||||
installed: {},
|
||||
},
|
||||
|
||||
teams: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user