Skip to content

Commit

Permalink
fix(ui): add optional check to avoid undefined reference in project d…
Browse files Browse the repository at this point in the history
…etail (#20044)

Signed-off-by: linghaoSu <linghao.su@daocloud.io>
  • Loading branch information
linghaoSu authored Sep 27, 2024
1 parent bc15ae8 commit 159eeec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ export class ProjectDetails extends React.Component<RouteComponentProps<{name: s
/>
<AuthSettingsCtx.Consumer>
{authCtx =>
authCtx.appsInAnyNamespaceEnabled && (
authCtx?.appsInAnyNamespaceEnabled && (
<EditablePanel
save={item => this.saveProject(item)}
values={proj}
Expand Down

0 comments on commit 159eeec

Please sign in to comment.