[pt] fix infinite loop (because of invalid value in nouns.sources)

This commit is contained in:
Avris 2021-03-19 20:51:18 +01:00
parent 63d2e506b7
commit 72534d79dc
1 changed files with 1 additions and 1 deletions

View File

@ -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;