Skip to content

Commit

Permalink
fix(fusager): hebergement modif filtre pour débloquer liste DS 835
Browse files Browse the repository at this point in the history
  • Loading branch information
l-scherer committed Feb 10, 2025
1 parent 044e8c0 commit 9eea9c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/services/hebergement/Hebergement.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ module.exports.getByUserId = async (userId, queryParams) => {
},
{
filterEnabled: true,
key: "h.statut_id",
key: "hs.value",
queryKey: "statut",
type: "default",
},
Expand Down
22 changes: 9 additions & 13 deletions packages/frontend-usagers/src/utils/hebergements.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
const statuts = {
ACTIF: "actif",
BROUILLON: "brouillon",
DESACTIVE: "desactive",
};

const statutsValues = [
{
value: "",
text: "Tous",
label: "",
},
{
value: 1,
value: statuts.BROUILLON,
text: "Brouillon",
label: "brouillon",
},
{
value: 2,
value: statuts.ACTIF,
text: "Actif",
label: "actif",
},
{
value: 3,
value: statuts.DESACTIVE,
text: "Désactivé",
label: "desactive",
},
];

const statuts = {
ACTIF: "actif",
BROUILLON: "brouillon",
DESACTIVE: "desactive",
};

export default {
statuts,
statutsValues,
Expand Down

0 comments on commit 9eea9c9

Please sign in to comment.