Skip to content

Commit

Permalink
fix(QueryService): added optional chaning null check to appendQuery c…
Browse files Browse the repository at this point in the history
…ondition (#104)
  • Loading branch information
kflo411 authored Aug 16, 2024
1 parent a8eafff commit 230ef77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/QueryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class QueryService<T> {
return this;
}
appendQuery(value: string) {
if (value.length) {
if (value?.length) {
this.parameters.where = this.parameters.where?.length ? `${this.parameters.where} AND ${value}` : value;
}
return this;
Expand Down

0 comments on commit 230ef77

Please sign in to comment.