Skip to content

Commit 0f11b59

Browse files
committed
fix(gouvernance): Delete Référent MESR from person page
1 parent 9a589da commit 0f11b59

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

src/pages/personnes/[id]/mandats.js

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
import { RelationsByTag } from '../../../components/blocs/relations';
22
import MandateForm from '../../../components/forms/mandate';
3-
import { GOUVERNANCE, STRUCTURE_REFERENT_MESR } from '../../../utils/relations-tags';
3+
import { GOUVERNANCE } from '../../../utils/relations-tags';
44

55
export default function PersonMandats() {
66
return (
7-
<>
8-
<RelationsByTag
9-
blocName="Mandats"
10-
tag={GOUVERNANCE}
11-
resourceType="structures"
12-
relatedObjectTypes={['persons']}
13-
Form={MandateForm}
14-
inverse
15-
sort="relationType.priority"
16-
/>
17-
<RelationsByTag
18-
tag={STRUCTURE_REFERENT_MESR}
19-
blocName="Référent MESR"
20-
resourceType="structures"
21-
relatedObjectTypes={['persons']}
22-
Form={MandateForm}
23-
inverse
24-
noRelationType
25-
/>
26-
</>
7+
<RelationsByTag
8+
blocName="Mandats"
9+
tag={GOUVERNANCE}
10+
resourceType="structures"
11+
relatedObjectTypes={['persons']}
12+
Form={MandateForm}
13+
inverse
14+
sort="relationType.priority"
15+
/>
2716
);
2817
}

0 commit comments

Comments
 (0)