From 993767c0b3167005c3dcd6afc7c00d39682be98b Mon Sep 17 00:00:00 2001 From: Kritish Dhaubanjar Date: Thu, 26 Oct 2023 13:19:09 -0700 Subject: [PATCH] fix(app): consider empty string a value in parameters --- app/src/utils/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/utils/table.ts b/app/src/utils/table.ts index ecac5487..ae454dfb 100644 --- a/app/src/utils/table.ts +++ b/app/src/utils/table.ts @@ -132,7 +132,7 @@ export function generateDynamodbParameters({ table, indexName, parameters }) { } // - if (!name || !value || !type || (condition === "between" && !value2)) continue; + if (!name || !type || (condition === "between" && !value2)) continue; if (["begins_with", "contains", "not contains"].includes(condition)) { expression = `${condition}(#${name}, :${salt})`;