diff --git a/source/components/RulePage.js b/source/components/RulePage.js index 108ff4c53..f7728421a 100644 --- a/source/components/RulePage.js +++ b/source/components/RulePage.js @@ -44,7 +44,8 @@ export default class RulePage extends Component { let rules = findRulesByName(flatRules, decodedRuleName) if (!rules.length) return - if (rules.length > 1) return + if (rules.length > 1) + return let dottedName = head(rules).dottedName return this.renderRule(dottedName) } @@ -88,7 +89,7 @@ class BackToSimulation extends Component { } } -let DisambiguateRuleQuery = ({ rules }) => ( +let DisambiguateRuleQuery = ({ rules, flatRules }) => (

@@ -98,7 +99,7 @@ let DisambiguateRuleQuery = ({ rules }) => (

    {rules.map(({ dottedName, ns, title }) => (
  • - + {title}
  • ))}