diff --git a/src/main/webapp/app/entities/customer/customer.component.ts b/src/main/webapp/app/entities/customer/customer.component.ts index b277ea6a..bd1f3e49 100644 --- a/src/main/webapp/app/entities/customer/customer.component.ts +++ b/src/main/webapp/app/entities/customer/customer.component.ts @@ -55,7 +55,7 @@ export class CustomerComponent implements OnInit, OnDestroy { } loadAll() { - let criteria = { + const criteria = { ...(this.filterValue.number && { 'number.equals': this.filterValue.number }), ...(this.filterValue.prefix && { 'prefix.contains': this.filterValue.prefix }) };