We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2b1c9b commit f2cabe7Copy full SHA for f2cabe7
packages/ui/src/elements/QueryPresets/cells/WhereCell/index.tsx
@@ -22,7 +22,11 @@ const transformWhereToNaturalLanguage = (where: Where): string => {
22
const operator = Object.keys(andQuery[key])[0]
23
const value = andQuery[key][operator]
24
25
- return `${toWords(key)} ${operator} ${toWords(value)}`
+ if (typeof value === 'string') {
26
+ return `${toWords(key)} ${operator} ${toWords(value)}`
27
+ } else if (Array.isArray(value)) {
28
+ return `${toWords(key)} ${operator} ${value.map((val) => toWords(val)).join(' or ')}`
29
+ }
30
}
31
32
return ''
0 commit comments