We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2162cb8 commit fb1f241Copy full SHA for fb1f241
src/components/Term/index.jsx
@@ -23,8 +23,9 @@ export default function Term({ type = null, children }) {
23
if (!type)
24
throw new Error(
25
`Problem: Term ${children.textContent} is not defined in type-map.js .
26
- Solution: explicitly specify term type, or add type definition to auto-type.js`,
+ Solution: explicitly specify term type, or add type definition to type-map.js`,
27
);
28
+
29
const term =
30
definitions.terms[type] || definitions.terms[shortDefinitions[type]];
31
if (!term) throw new Error(`Type ${type} is not defined.`);
0 commit comments