filter string empty from CW policy settings

This commit is contained in:
Nicolas Constant 2020-03-31 18:58:05 -04:00
parent 7144463c5a
commit 5e2ab0365f
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ export class SettingsComponent implements OnInit {
}
private splitCwValues(data: string): string[]{
return data.split(';').map(x => x.trim().toLowerCase()).filter((value, index, self) => self.indexOf(value) === index);
return data.split(';').map(x => x.trim().toLowerCase()).filter((value, index, self) => self.indexOf(value) === index).filter(y => y !== '');
}
reload(): boolean {