Skip to content

Commit

Permalink
fix(admin-ui): Fix query filter option in order list component
Browse files Browse the repository at this point in the history
Relates to vendure-ecommerce#2257. This commit add customerLastName and id filters
  • Loading branch information
cdiban committed Jun 30, 2023
1 parent 9b9119c commit 93cbf9d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
TypedBaseListComponent,
} from '@vendure/admin-ui/core';
import { Order } from '@vendure/common/lib/generated-types';
import { LogicalOperator } from 'package/core';
import { tap } from 'rxjs/operators';

@Component({
Expand Down Expand Up @@ -137,6 +138,12 @@ export class OrderListComponent
code: {
contains: searchTerm,
},
customerLastName: {
contains: searchTerm,
},
id: {
eq: searchTerm,
},
};
}
return {
Expand All @@ -146,6 +153,7 @@ export class OrderListComponent
filter: {
...(filterInput ?? {}),
},
filterOperator: LogicalOperator.OR,
sort: this.sorts.createSortInput(),
},
};
Expand Down

0 comments on commit 93cbf9d

Please sign in to comment.