diff --git a/components/GrammarTable.vue b/components/GrammarTable.vue index 81722302f..e4d76e117 100644 --- a/components/GrammarTable.vue +++ b/components/GrammarTable.vue @@ -16,6 +16,9 @@ const expandVariantsForSection = (sectionVariants: SectionDefinition['variants'] if (Array.isArray(sectionVariants)) { return sectionVariants.map((sectionVariant) => { const morphemeCells = sectionVariant.morphemeCells.map((morphemeCell) => { + if (morphemeCell === null) { + return null; + } if (typeof morphemeCell === 'string') { return { morpheme: morphemeCell }; } @@ -43,7 +46,8 @@ const buildVariantsForSection = ( ): Variant[] => { return expandVariantsForSection(sectionVariants).filter((variant) => { return variant.morphemeCells.some((morphemeCell) => { - return props.exampleValues.morphemeValues.getSpelling(morphemeCell.morpheme) !== undefined; + return morphemeCell !== null && + props.exampleValues.morphemeValues.getSpelling(morphemeCell.morpheme) !== undefined; }); }); }; @@ -125,8 +129,9 @@ const rowHeaderCount = computed(() => { -
- | Pronombre | -Pr. de objeto directo | -Artículo determinado | -Artículo indeterminado | -Flexión | -
---|---|---|---|---|---|
Singular | -|||||
Plural | -