fixed plural display crash
This commit is contained in:
parent
75aac412ec
commit
e2a3e5e378
|
@ -16,7 +16,6 @@ import {
|
|||
Types as T,
|
||||
InlinePs,
|
||||
validateEntry,
|
||||
standardizeEntry,
|
||||
} from "@lingdocs/pashto-inflector";
|
||||
import Entry from "../components/Entry";
|
||||
import * as FT from "../types/functions-types";
|
||||
|
|
|
@ -190,13 +190,13 @@ function IsolatedEntry({ state, dictionary, isolateEntry }: {
|
|||
{editSubmitted && <p>Thank you for your help!</p>}
|
||||
{inf && <>
|
||||
{inf.inflections && <InflectionsTable inf={inf.inflections} textOptions={textOptions} />}
|
||||
{"plural" in inf && <div>
|
||||
{"plural" in inf && inf.plural !== undefined && <div>
|
||||
<h5>Plural</h5>
|
||||
<InflectionsTable inf={inf.plural as T.PluralInflections} textOptions={textOptions} />
|
||||
<InflectionsTable inf={inf.plural} textOptions={textOptions} />
|
||||
</div>}
|
||||
{"arabicPlural" in inf && <div>
|
||||
{"arabicPlural" in inf && inf.arabicPlural !== undefined && <div>
|
||||
<h5>Arabic Plural</h5>
|
||||
<InflectionsTable inf={inf.arabicPlural as T.PluralInflections} textOptions={textOptions} />
|
||||
<InflectionsTable inf={inf.arabicPlural} textOptions={textOptions} />
|
||||
</div>}
|
||||
</>}
|
||||
{/* TODO: State options for tail type here */}
|
||||
|
|
Loading…
Reference in New Issue