From ab753978b79c5b79cfc12fd0bcbccd8abd5b93ae Mon Sep 17 00:00:00 2001 From: adueck Date: Fri, 18 Nov 2022 12:38:40 +0500 Subject: [PATCH] try safer verb conjugation on entry editor --- website/src/screens/EntryEditor.tsx | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/website/src/screens/EntryEditor.tsx b/website/src/screens/EntryEditor.tsx index 7847abb..c673118 100644 --- a/website/src/screens/EntryEditor.tsx +++ b/website/src/screens/EntryEditor.tsx @@ -355,17 +355,24 @@ function EntryEditor({ isolatedEntry, dictionary, searchParams, textOptions, use /> } {typePredicates.isVerbEntry({ entry, complement }) &&
- + {(() => { + try { + return + } catch(e) { + console.error(e); + return
Error conjugating verb
+ } + })()}
} } ;