Revert "quick fix existing filter updates"

This reverts commit 2653fe54fc.
pull/5448/head
Jens Ulferts 8 years ago
parent 8d49ac66f1
commit d01e947288
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 10
      frontend/app/components/wp-fast-table/wp-table-filters.ts

@ -43,15 +43,7 @@ export class WorkPackageTableFilters extends WorkPackageTableBaseState<QueryFilt
public current:QueryFilterInstanceResource[] = []; public current:QueryFilterInstanceResource[] = [];
public comparerFunction():(current:QueryFilterInstanceResource[]) => any { public comparerFunction():(current:QueryFilterInstanceResource[]) => any {
// TODO: this should be return (current:QueryFilterInstanceResource[]) => current.map((el:HalResource) => el.$plain());
//
// return (current:QueryFilterInstanceResource[]) => current.map((el:HalResource) => el.$plain());
//
// instead. But for some reasons deeply burried probably within the
// HalResource, filters received from the server will not set the
// HalResource's source correctly when updating the values, operators ...
// Filters created in the frontend itself behave as expected.
return (current:QueryFilterInstanceResource[]) => current.map((el:HalResource) => _.cloneDeep(el));
} }
constructor(filters:QueryFilterInstanceResource[], schema:QuerySchemaResourceInterface) { constructor(filters:QueryFilterInstanceResource[], schema:QuerySchemaResourceInterface) {

Loading…
Cancel
Save