Skip to content

Commit

Permalink
fix: session launcher validation logic when max_concurrent_sessions i…
Browse files Browse the repository at this point in the history
…s set to 0 (unlimited)
  • Loading branch information
ironAiken2 committed Sep 25, 2024
1 parent 9b7c75e commit 51c9584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/src/components/ResourceAllocationFormItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1125,11 +1125,11 @@ const ResourceAllocationFormItems: React.FC<
}
: {}),
[sessionSliderLimitAndRemaining?.max]:
sessionSliderLimitAndRemaining?.max,
sessionSliderLimitAndRemaining?.max || 1000000,
},
}}
min={sessionSliderLimitAndRemaining?.min}
max={sessionSliderLimitAndRemaining?.max}
max={sessionSliderLimitAndRemaining?.max || 1000000}
/>
</Form.Item>
);
Expand Down

0 comments on commit 51c9584

Please sign in to comment.