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