Skip to content

Commit

Permalink
fix: apply hideAgents configuration check in launcher page instead of…
Browse files Browse the repository at this point in the history
… child component
  • Loading branch information
lizable committed Nov 22, 2024
1 parent b30e745 commit 0e5d3ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react/src/components/ResourceAllocationFormItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ const ResourceAllocationFormItems: React.FC<
</Card>
) : null}
{/* TODO: Support cluster mode */}
{!baiClient._config.hideAgents && enableAgentSelect && (
{enableAgentSelect && (
<Form.Item
label={t('session.launcher.SelectAgent')}
required
Expand Down
2 changes: 1 addition & 1 deletion react/src/pages/SessionLauncherPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ const SessionLauncherPage = () => {
}}
>
<ResourceAllocationFormItems
enableAgentSelect
enableAgentSelect={!baiClient._config.hideAgents}
enableNumOfSessions
enableResourcePresets
showRemainingWarning
Expand Down

0 comments on commit 0e5d3ae

Please sign in to comment.