Skip to content

Commit 230ef77

Browse files
authored
fix(QueryService): added optional chaning null check to appendQuery condition (#104)
1 parent a8eafff commit 230ef77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/QueryService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class QueryService<T> {
7777
return this;
7878
}
7979
appendQuery(value: string) {
80-
if (value.length) {
80+
if (value?.length) {
8181
this.parameters.where = this.parameters.where?.length ? `${this.parameters.where} AND ${value}` : value;
8282
}
8383
return this;

0 commit comments

Comments
 (0)