Skip to content

Commit

Permalink
Correctifs sur le filtre avancé par type / sous-type de bordereau (#3594
Browse files Browse the repository at this point in the history
)
  • Loading branch information
GaelFerrand authored Sep 20, 2024
1 parent 408bd92 commit c5018e6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 32 deletions.
52 changes: 20 additions & 32 deletions front/src/Apps/Dashboard/dashboardUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,30 +91,24 @@ const bsdTypeFilterSelectOptions = [
]
},
{
value: BsdType.Bsdasri,
label: bsd_type_option_bsdasri,
value: BsdType.Bsda,
label: bsd_type_option_bsda,
options: [
{
value: BsdSubType.Initial,
label: bsd_sub_type_option_initial
},
{
value: BsdSubType.Synthesis,
label: bsd_sub_type_option_synthesis
},
{
value: BsdSubType.Gathering,
label: bsd_sub_type_option_gathering
}
]
},
{
value: BsdType.Bsvhu,
label: bsd_type_option_bsvhu,
options: [
},
{
value: BsdSubType.Initial,
label: bsd_sub_type_option_initial
value: BsdSubType.Reshipment,
label: bsd_sub_type_option_reshipment
},
{
value: BsdSubType.Collection_2710,
label: bsd_sub_type_option_collection_2710
}
]
},
Expand All @@ -141,36 +135,30 @@ const bsdTypeFilterSelectOptions = [
]
},
{
value: BsdType.Bsda,
label: bsd_type_option_bsda,
value: BsdType.Bsvhu,
label: bsd_type_option_bsvhu
},
{
value: BsdType.Bsdasri,
label: bsd_type_option_bsdasri,
options: [
{
value: BsdSubType.Initial,
label: bsd_sub_type_option_initial
},
{
value: BsdSubType.Gathering,
label: bsd_sub_type_option_gathering
},
{
value: BsdSubType.Reshipment,
label: bsd_sub_type_option_reshipment
value: BsdSubType.Synthesis,
label: bsd_sub_type_option_synthesis
},
{
value: BsdSubType.Collection_2710,
label: bsd_sub_type_option_collection_2710
value: BsdSubType.Gathering,
label: bsd_sub_type_option_gathering
}
]
},
{
value: BsdType.Bspaoh,
label: bsd_type_option_bspaoh,
options: [
{
value: BsdSubType.Initial,
label: bsd_sub_type_option_initial
}
]
label: bsd_type_option_bspaoh
}
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const SelectWithSubOptions = ({

{/* Option's potential sub-options */}
{option.options &&
optionIsAlreadySelected &&
mapOptions(
option.options,
[...parentPaths, option.value],
Expand Down

0 comments on commit c5018e6

Please sign in to comment.