From 3e6ddf830f8f01c7575eae932d8b11ba02243567 Mon Sep 17 00:00:00 2001 From: Kevin Florian Date: Fri, 16 Aug 2024 10:07:08 -0400 Subject: [PATCH] fix(QueryService): added optional chaning null check to appendQuery condition --- src/services/QueryService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/QueryService.ts b/src/services/QueryService.ts index 48441e3..fc44fc9 100644 --- a/src/services/QueryService.ts +++ b/src/services/QueryService.ts @@ -77,7 +77,7 @@ export class QueryService { 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;