From d72f86deb28b20512b8c89787b89c30e08a6eff2 Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Mon, 17 Aug 2020 11:23:27 -0400 Subject: [PATCH] Check for empty glosses (#593) --- .../DataEntry/ExistingDataTable/ExistingDataTable.tsx | 2 +- .../ImmutableExistingData/ImmutableExistingData.tsx | 4 ++-- src/types/word.tsx | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/DataEntry/ExistingDataTable/ExistingDataTable.tsx b/src/components/DataEntry/ExistingDataTable/ExistingDataTable.tsx index a3331d5296..0bd7c8b2ba 100644 --- a/src/components/DataEntry/ExistingDataTable/ExistingDataTable.tsx +++ b/src/components/DataEntry/ExistingDataTable/ExistingDataTable.tsx @@ -25,7 +25,7 @@ export class ExistingDataTable extends React.Component { ))} diff --git a/src/components/DataEntry/ExistingDataTable/ImmutableExistingData/ImmutableExistingData.tsx b/src/components/DataEntry/ExistingDataTable/ImmutableExistingData/ImmutableExistingData.tsx index 0094987a7c..99c259a5df 100644 --- a/src/components/DataEntry/ExistingDataTable/ImmutableExistingData/ImmutableExistingData.tsx +++ b/src/components/DataEntry/ExistingDataTable/ImmutableExistingData/ImmutableExistingData.tsx @@ -2,8 +2,8 @@ import React from "react"; import { Grid, Typography } from "@material-ui/core"; interface ImmutableExistingDataProps { - vernacular: string; - gloss: string; + vernacular?: string; + gloss?: string; } /** diff --git a/src/types/word.tsx b/src/types/word.tsx index a1e38708e1..3b53a37066 100644 --- a/src/types/word.tsx +++ b/src/types/word.tsx @@ -104,6 +104,7 @@ export function multiGlossWord(vern: string, glosses: string[]): Word { export function testWordList(): Word[] { return [ + { ...simpleWord("NoSense", ""), senses: [] }, simpleWord("Yoink", "Hello"), simpleWord("Yode", "Goodbye"), simpleWord("Yoff", "Yes"),