Skip to content

Commit

Permalink
fix(ui-launcher): add API values for min max number of cores
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia authored and skamril committed Nov 29, 2023
1 parent 011fbc6 commit ea188b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions webapp/src/components/App/Studies/LauncherDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function LauncherDialog(props: Props) {
nb_cpu: cores.defaultValue,
};
});
return cores;
}),
{
errorMessage: t("study.error.launcherCores"),
Expand Down Expand Up @@ -281,7 +282,7 @@ function LauncherDialog(props: Props) {
/>
<UsePromiseCond
response={cores}
ifResolved={() => (
ifResolved={(cores) => (
<TextField
id="nb-cpu"
label={t("study.nbCpu")}
Expand All @@ -292,8 +293,8 @@ function LauncherDialog(props: Props) {
handleChange("nb_cpu", parseInt(e.target.value, 10))
}
inputProps={{
min: 1,
max: 24,
min: cores.min,
max: cores.max,
}}
sx={{
minWidth: "125px",
Expand Down

0 comments on commit ea188b1

Please sign in to comment.