From 5fc52c9856589dde9ea18fe5bdeddea282529393 Mon Sep 17 00:00:00 2001 From: Christophe BENARD Date: Wed, 22 Jan 2025 17:54:45 +0100 Subject: [PATCH] fix: Supprimer des tris inutiles refers to https://trello.com/c/tSWMTnSk/2251 --- .../shantytown/_common/shantytown.write.validator.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/api/server/controllers/shantytown/_common/shantytown.write.validator.ts b/packages/api/server/controllers/shantytown/_common/shantytown.write.validator.ts index ac06caea9..301d653d4 100644 --- a/packages/api/server/controllers/shantytown/_common/shantytown.write.validator.ts +++ b/packages/api/server/controllers/shantytown/_common/shantytown.write.validator.ts @@ -542,10 +542,11 @@ export default mode => ([ ]; if (mode !== 'create') { + console.log('shantytown.write.validator:', JSON.stringify(updatedPreparatoryPhasesTowardResorption)); fieldsToCheck.push({ key: 'preparatory_phases_toward_resorption', - submitedValue: updatedPreparatoryPhasesTowardResorption ? JSON.stringify(updatedPreparatoryPhasesTowardResorption.sort()) : null, - storedValue: existingPreparatoryPhasesTowardResorption ? JSON.stringify(existingPreparatoryPhasesTowardResorption.sort()) : null, + submitedValue: updatedPreparatoryPhasesTowardResorption ? JSON.stringify(updatedPreparatoryPhasesTowardResorption) : null, + storedValue: existingPreparatoryPhasesTowardResorption ? JSON.stringify(existingPreparatoryPhasesTowardResorption) : null, }); }