From 23f6fbc893f5edd31c79ae33fe73cc695def42a0 Mon Sep 17 00:00:00 2001 From: folland87 Date: Tue, 19 Sep 2023 14:54:14 +0200 Subject: [PATCH] mandatePrecision --- src/pages/annuaire/components/result.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/annuaire/components/result.js b/src/pages/annuaire/components/result.js index 03ba0084..15c88102 100644 --- a/src/pages/annuaire/components/result.js +++ b/src/pages/annuaire/components/result.js @@ -73,7 +73,10 @@ const otherColumns = [ name: 'relationType', label: 'Titre', sortable: true, - render: ({ relationType, mandateTemporary }) => `${relationType}${mandateTemporary ? ' par interim' : ''}`, + render: ({ relationType, mandateTemporary, mandatePrecision }) => { + if (mandatePrecision) return mandatePrecision; + return `${relationType}${mandateTemporary ? ' par interim' : ''}`; + }, }, { name: 'structure',