[AngularJS] Re: Some Help For Optimising a @Pipe

2018-04-13 Thread Daniel Judd
Hi. I have take a look at the code. A lot of the stuff in there seems to be essential but I did edit the code. I hope it can be of some help: interface Dossier { datas: any[]; // I image this is an Array of a different interface. name: string; } @Pipe({name: 'search2'}) export class

[AngularJS] Re: Cannot read property account_group_name of null

2018-04-13 Thread Daniel Judd
The error is occurring before the check for null on account_group_name; this error is saying that sub_group_id is null i.e the code is trying to do accountgroup[null].account_group_name. Some values in the Object accountgroups are not formed as expected at the time of being retrieved. If these u