[pt] fix infinite loop (because of invalid value in nouns.sources)
This commit is contained in:
parent
63d2e506b7
commit
72534d79dc
|
@ -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;
|
||||
|
|
Reference in New Issue