From 16d97044c76b08987e681e25f2c10433b5b2cd6e Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Tue, 17 Sep 2024 16:10:18 +0200 Subject: [PATCH] (pronouns) safe guard against requesting unknown morphemes this should only happen when something is misconfigured or a wrong is supplied, but it does hurt DX oftentimes --- src/classes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes.ts b/src/classes.ts index 3e57e6732..5cc65c25c 100644 --- a/src/classes.ts +++ b/src/classes.ts @@ -519,7 +519,7 @@ export class Pronoun { } const value = this.morphemes[morpheme]; - if (value === null) { + if (value === null || value === undefined) { return null; }