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(remarkWikiLink, {
|
||||
aliasDivider: "|",
|
||||
permalinks: binding.playbill.allComponents().map((c) => c.id),
|
||||
permalinks: binding.playbill.allComponentIds,
|
||||
pageResolver: (permalink: string) => {
|
||||
return [toSlug(permalink)];
|
||||
},
|
||||
|
|
|
@ -19,12 +19,13 @@ export function SpeciesSection({ species, playbill }: SpeciesSectionProps) {
|
|||
<div className="species-abilities">
|
||||
<h3>Innate Abilities</h3>
|
||||
{species.abilities.map((abilityId) => {
|
||||
return (
|
||||
<AbilityCard
|
||||
ability={playbill.abilities[abilityId]}
|
||||
key={abilityId}
|
||||
/>
|
||||
);
|
||||
const ability = playbill.getAbility(abilityId);
|
||||
|
||||
if (ability === null) {
|
||||
throw new Error(`Ability not found: ${abilityId}`);
|
||||
}
|
||||
|
||||
return <AbilityCard ability={ability} key={abilityId} />;
|
||||
})}
|
||||
</div>
|
||||
) : (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue