mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -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];
|
const value = this.morphemes[morpheme];
|
||||||
if (value === null) {
|
if (value === null || value === undefined) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user