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>} </div>}
{typePredicates.isVerbEntry({ entry, complement }) && <div className="pb-4"> {typePredicates.isVerbEntry({ entry, complement }) && <div className="pb-4">
<VPExplorer {(() => {
verb={{ try {
// TODO: CLEAN THIS UP! return <VPExplorer
// @ts-ignore verb={{
entry, // TODO: CLEAN THIS UP!
complement, // @ts-ignore
}} entry,
opts={textOptions} complement,
entryFeeder={entryFeeder} }}
handleLinkClick={"none"} opts={textOptions}
/> entryFeeder={entryFeeder}
handleLinkClick={"none"}
/>
} catch(e) {
console.error(e);
return <h5>Error conjugating verb</h5>
}
})()}
</div>} </div>}
</div>} </div>}
</div>; </div>;