mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
(pronouns) safe guard against requesting unknown morphemes
this should only happen when something is misconfigured or a wrong <GrammarTables> is supplied, but it does hurt DX oftentimes
This commit is contained in:
parent
01c92a9018
commit
16d97044c7
@ -519,7 +519,7 @@ export class Pronoun {
|
||||
}
|
||||
|
||||
const value = this.morphemes[morpheme];
|
||||
if (value === null) {
|
||||
if (value === null || value === undefined) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user