Skip to content

Commit

Permalink
fix(ui): prevent CreateVariantDialog fields overflow (#2044)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4665e88)
  • Loading branch information
hdinia authored and laurent-laporte-pro committed May 31, 2024
1 parent 827850e commit 012bee4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ v2.17.1 (2024-05-29)
* **ui-utils:** add overload signatures for validateNumber function in validationUtils [`#2029`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/2029)
* **desktop**: update Antares Web Desktop version [`#2036`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/2036)
* **ui:** add studies "archive" tag [`#2043`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/2043)
* **ui:** prevent `CreateVariantDialog` fields overflow [`#2044`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/2043)


### Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function CreateVariantDialog(props: Props) {
return createVariant(sourceId, name);
};

const handleSubmitSuccessful = async (
const handleSubmitSuccessful = (
data: SubmitHandlerPlus<typeof defaultValues>,
variantId: string,
) => {
Expand All @@ -58,6 +58,7 @@ function CreateVariantDialog(props: Props) {

return (
<FormDialog
maxWidth="sm"
title={t("studies.createNewStudy")}
titleIcon={AddCircleIcon}
open={open}
Expand All @@ -67,7 +68,7 @@ function CreateVariantDialog(props: Props) {
config={{ defaultValues }}
>
{({ control }) => (
<Fieldset fullFieldWidth>
<Fieldset fieldWidth={550}>
<StringFE
label={t("variants.newVariant")}
name="name"
Expand All @@ -79,6 +80,7 @@ function CreateVariantDialog(props: Props) {
/>
<SelectFE
label={t("study.versionSource")}
variant="outlined"
options={sourceList.map((ver) => ({
label: ver.name,
value: ver.id,
Expand Down

0 comments on commit 012bee4

Please sign in to comment.