|
|
|
@ -35,6 +35,7 @@ |
|
|
|
number: "numberfield", |
|
|
|
datetime: "datetimefield", |
|
|
|
boolean: "booleanfield", |
|
|
|
formula: "stringfield", |
|
|
|
} |
|
|
|
|
|
|
|
let formId |
|
|
|
@ -60,10 +61,11 @@ |
|
|
|
let enrichedFilter = [...(filter || [])] |
|
|
|
columns?.forEach(column => { |
|
|
|
const safePath = column.name.split(".").map(safe).join(".") |
|
|
|
const stringType = column.type === "string" || column.type === "formula" |
|
|
|
enrichedFilter.push({ |
|
|
|
field: column.name, |
|
|
|
operator: column.type === "string" ? "string" : "equal", |
|
|
|
type: column.type === "string" ? "string" : "number", |
|
|
|
operator: stringType ? "string" : "equal", |
|
|
|
type: stringType ? "string" : "number", |
|
|
|
valueType: "Binding", |
|
|
|
value: `{{ ${safe(formId)}.${safePath} }}`, |
|
|
|
}) |
|
|
|
|