fix filter params

This commit is contained in:
Francis Cao 2023-07-31 11:42:47 -07:00
parent 95d824542f
commit 7e112b8469
6 changed files with 11 additions and 5 deletions

View file

@ -70,7 +70,7 @@ function getFilterQuery(filters = {}, params = []): string {
if (filter !== undefined) {
const column = FILTER_COLUMNS[key] || key;
arr.push(`and ${column}=$${params.length + 1}`);
arr.push(`and ${column}={{${key}}}`);
params.push(decodeURIComponent(filter));
}