filter string empty from CW policy settings
This commit is contained in:
parent
7144463c5a
commit
5e2ab0365f
|
@ -140,7 +140,7 @@ export class SettingsComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
private splitCwValues(data: string): string[]{
|
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 {
|
reload(): boolean {
|
||||||
|
|
Loading…
Reference in New Issue