[WEB-5489] fix: prevent AppRail hook usage outside context in disabled workspace components (#8164)

This commit is contained in:
Prateek Shourya 2025-11-24 16:03:36 +05:30 committed by GitHub
parent 0240e46f04
commit e6d584fde7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,13 +7,13 @@ import { WorkspaceAuthWrapper } from "@/plane-web/layouts/workspace-wrapper";
export default function WorkspaceLayout() { export default function WorkspaceLayout() {
return ( return (
<AuthenticationWrapper> <AuthenticationWrapper>
<WorkspaceAuthWrapper>
<AppRailProvider> <AppRailProvider>
<WorkspaceAuthWrapper>
<WorkspaceContentWrapper> <WorkspaceContentWrapper>
<Outlet /> <Outlet />
</WorkspaceContentWrapper> </WorkspaceContentWrapper>
</AppRailProvider>
</WorkspaceAuthWrapper> </WorkspaceAuthWrapper>
</AppRailProvider>
</AuthenticationWrapper> </AuthenticationWrapper>
); );
} }