From 230ef77b098701aa4cfdbdfad7e82c4e750ae1ad Mon Sep 17 00:00:00 2001 From: Kevin Florian <102239533+kflo411@users.noreply.github.com> Date: Fri, 16 Aug 2024 07:11:08 -0700 Subject: [PATCH] fix(QueryService): added optional chaning null check to appendQuery condition (#104) --- 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;