Skip to content

Commit 159eeec

Browse files
authoredSep 27, 2024··
fix(ui): add optional check to avoid undefined reference in project detail (#20044)
Signed-off-by: linghaoSu <linghao.su@daocloud.io>
1 parent bc15ae8 commit 159eeec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎ui/src/app/settings/components/project-details/project-details.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export class ProjectDetails extends React.Component<RouteComponentProps<{name: s
671671
/>
672672
<AuthSettingsCtx.Consumer>
673673
{authCtx =>
674-
authCtx.appsInAnyNamespaceEnabled && (
674+
authCtx?.appsInAnyNamespaceEnabled && (
675675
<EditablePanel
676676
save={item => this.saveProject(item)}
677677
values={proj}

0 commit comments

Comments
 (0)
Please sign in to comment.