mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Fix apps
This commit is contained in:
parent
e286b36114
commit
3bb1968498
@ -14,7 +14,7 @@ export function AppEnabledGuard(props: { appId: AppId, children: ReactNode }) {
|
||||
const project = adminApp.useProject();
|
||||
const config = project.useConfig();
|
||||
const installedApps = config.apps.installed;
|
||||
const isEnabled = installedApps[props.appId].enabled;
|
||||
const isEnabled = installedApps[props.appId]?.enabled;
|
||||
|
||||
useEffect(() => {
|
||||
if (!isEnabled) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user