mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 03:57:47 -04:00
[pt] fix infinite loop (because of invalid value in nouns.sources)
This commit is contained in:
parent
8cec550896
commit
8742f7741b
@ -567,7 +567,7 @@ export class Noun {
|
||||
this.femPl = femPl ? femPl.split('|') : [];
|
||||
this.neutrPl = neutrPl ? neutrPl.split('|') : [];
|
||||
this.sources = sources ? sources.split(',') : [];
|
||||
this.sourcesData = sourcesData.map(s => new Source(s));
|
||||
this.sourcesData = sourcesData.filter(s => !!s).map(s => new Source(s));
|
||||
this.approved = !!approved;
|
||||
this.base = base_id;
|
||||
this.author = author;
|
||||
|
Loading…
x
Reference in New Issue
Block a user