handle filter not having values

pull/6272/head
Jens Ulferts 7 years ago
parent bc833e8be6
commit afc75de60d
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      frontend/app/components/wp-form-group/wp-query-group.component.ts

@ -89,7 +89,7 @@ export class WorkPackageFormQueryGroupComponent implements OnInit {
let duppedQuery = _.clone(this.group.query);
_.each(duppedQuery.filters, (filter) => {
if (filter._links.values[0].templated) {
if (filter._links.values[0] && filter._links.values[0].templated) {
filter._links.values[0].href = filter._links.values[0].href.replace('{id}', this.workPackage.id);
}
});

Loading…
Cancel
Save