try safer verb conjugation on entry editor

This commit is contained in:
adueck 2022-11-18 12:38:40 +05:00
parent 537fbc12b4
commit ab753978b7
1 changed files with 18 additions and 11 deletions

View File

@ -355,17 +355,24 @@ function EntryEditor({ isolatedEntry, dictionary, searchParams, textOptions, use
/>
</div>}
{typePredicates.isVerbEntry({ entry, complement }) && <div className="pb-4">
<VPExplorer
verb={{
// TODO: CLEAN THIS UP!
// @ts-ignore
entry,
complement,
}}
opts={textOptions}
entryFeeder={entryFeeder}
handleLinkClick={"none"}
/>
{(() => {
try {
return <VPExplorer
verb={{
// TODO: CLEAN THIS UP!
// @ts-ignore
entry,
complement,
}}
opts={textOptions}
entryFeeder={entryFeeder}
handleLinkClick={"none"}
/>
} catch(e) {
console.error(e);
return <h5>Error conjugating verb</h5>
}
})()}
</div>}
</div>}
</div>;