mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-10 15:05:01 +00:00
fix(documentation): la documentation plante si on tente d’afficher une règle privée
#3363
This commit is contained in:
parent
e9b79c97d4
commit
9e656c3233
1 changed files with 6 additions and 1 deletions
|
@ -36,7 +36,12 @@ export function References({
|
|||
if (!parentRule) {
|
||||
return null
|
||||
}
|
||||
const parentRefences = engine.getRule(parentRule).rawNode.références
|
||||
const parentRefences =
|
||||
engine.baseContext.parsedRules[parentRule].rawNode.références
|
||||
/* TODO à remplacer une fois que https://github.com/publicodes/publicodes/issues/613
|
||||
* par un truc plus propre du genre const parentReferences = engine.dev.getRule(parentRule).références
|
||||
*/
|
||||
|
||||
if (!parentRefences) {
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue