Skip to content
Snippets Groups Projects
Unverified Commit 73ec4f3f authored by vmaubert's avatar vmaubert
Browse files

fix(titre): corrige le chargement d'un titre (#151)

parent 64d061ff
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,7 @@ const etapeHeritage = async ( ...@@ -181,7 +181,7 @@ const etapeHeritage = async (
type: { id: {} }, type: { id: {} },
titulaires: { id: {} }, titulaires: { id: {} },
amodiataires: { id: {} }, amodiataires: { id: {} },
substances: { legales: { code: { id: {} } } }, substances: { legales: { id: {} } },
points: { references: { id: {} } } points: { references: { id: {} } }
} }
} }
......
...@@ -9,7 +9,7 @@ const heritagePropsFormat = async (heritageProps: IHeritageProps) => { ...@@ -9,7 +9,7 @@ const heritagePropsFormat = async (heritageProps: IHeritageProps) => {
if (propId === 'points') { if (propId === 'points') {
fields.points = { references: { id: {} } } fields.points = { references: { id: {} } }
} else if (propId === 'substances') { } else if (propId === 'substances') {
fields.substances = { legales: { code: { id: {} } } } fields.substances = { legales: { id: {} } }
} else if (['titulaires', 'amodiataires'].includes(propId)) { } else if (['titulaires', 'amodiataires'].includes(propId)) {
fields[propId] = { id: {} } fields[propId] = { id: {} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment