Fix breakages
This commit is contained in:
parent
f7f861a1cb
commit
8bb807c8e7
2 changed files with 8 additions and 7 deletions
|
@ -26,7 +26,7 @@ export function createMarkdownRenderer(
|
||||||
.use(remarkGfm)
|
.use(remarkGfm)
|
||||||
.use(remarkWikiLink, {
|
.use(remarkWikiLink, {
|
||||||
aliasDivider: "|",
|
aliasDivider: "|",
|
||||||
permalinks: binding.playbill.allComponents().map((c) => c.id),
|
permalinks: binding.playbill.allComponentIds,
|
||||||
pageResolver: (permalink: string) => {
|
pageResolver: (permalink: string) => {
|
||||||
return [toSlug(permalink)];
|
return [toSlug(permalink)];
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,12 +19,13 @@ export function SpeciesSection({ species, playbill }: SpeciesSectionProps) {
|
||||||
<div className="species-abilities">
|
<div className="species-abilities">
|
||||||
<h3>Innate Abilities</h3>
|
<h3>Innate Abilities</h3>
|
||||||
{species.abilities.map((abilityId) => {
|
{species.abilities.map((abilityId) => {
|
||||||
return (
|
const ability = playbill.getAbility(abilityId);
|
||||||
<AbilityCard
|
|
||||||
ability={playbill.abilities[abilityId]}
|
if (ability === null) {
|
||||||
key={abilityId}
|
throw new Error(`Ability not found: ${abilityId}`);
|
||||||
/>
|
}
|
||||||
);
|
|
||||||
|
return <AbilityCard ability={ability} key={abilityId} />;
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue