Skip to content

Commit

Permalink
fix(admin-ui): List newly-created customers
Browse files Browse the repository at this point in the history
Fixes #2213
  • Loading branch information
michaelbromley committed Jun 12, 2023
1 parent 3fb170e commit 6483aad
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,19 @@ export class CustomerListComponent
skip,
take,
filter: {
emailAddress: {
contains: this.searchTermControl.value,
},
lastName: {
contains: this.searchTermControl.value,
},
postalCode: {
contains: this.searchTermControl.value,
},
...(this.searchTermControl.value
? {
emailAddress: {
contains: this.searchTermControl.value,
},
lastName: {
contains: this.searchTermControl.value,
},
postalCode: {
contains: this.searchTermControl.value,
},
}
: {}),
...this.filters.createFilterInput(),
},
filterOperator: this.searchTermControl.value ? LogicalOperator.OR : LogicalOperator.AND,
Expand Down

0 comments on commit 6483aad

Please sign in to comment.