From 2b090a4e9e33a010e3df153da540f88f20348a56 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Thu, 14 Sep 2023 17:56:58 -0400 Subject: [PATCH] [DataEntryTable] Await submitting word before exiting (#2577) --- src/components/DataEntry/DataEntryTable/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DataEntry/DataEntryTable/index.tsx b/src/components/DataEntry/DataEntryTable/index.tsx index f237550364..1b66bcf1ca 100644 --- a/src/components/DataEntry/DataEntryTable/index.tsx +++ b/src/components/DataEntry/DataEntryTable/index.tsx @@ -681,7 +681,7 @@ export default function DataEntryTable( ); if (!oldWord) { // Existing word not found, so create a new word. - addNewEntry(); + await addNewEntry(); } else { // Found an existing word, so add a sense to it. await updateWordWithNewEntry(oldWord.id);